mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot: add a frontend button to view batch in backend
This commit is contained in:
parent
f947b1ed00
commit
84e016be0f
@ -616,7 +616,7 @@ class Runbot(Controller):
|
|||||||
_logger.info('Redirecting to %s', run_url)
|
_logger.info('Redirecting to %s', run_url)
|
||||||
return werkzeug.utils.redirect(run_url)
|
return werkzeug.utils.redirect(run_url)
|
||||||
|
|
||||||
@route(['/runbot/parse_log/<model("ir.logging"):ir_log>'], type='http', auth='user', website=True, sitemap=False)
|
@route(['/runbot/parse_log/<model("ir.logging"):ir_log>'], type='http', auth='user', sitemap=False)
|
||||||
def parse_log(self, ir_log, **kwargs):
|
def parse_log(self, ir_log, **kwargs):
|
||||||
request.env['runbot.build.error']._parse_logs(ir_log)
|
request.env['runbot.build.error']._parse_logs(ir_log)
|
||||||
return werkzeug.utils.redirect('/runbot/build/%s' % ir_log.build_id.id)
|
return werkzeug.utils.redirect('/runbot/build/%s' % ir_log.build_id.id)
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
<td>Bundle</td>
|
<td>Bundle</td>
|
||||||
<td>
|
<td>
|
||||||
<a t-esc="batch.bundle_id.name" t-attf-href="/runbot/bundle/{{batch.bundle_id.id}}"/>
|
<a t-esc="batch.bundle_id.name" t-attf-href="/runbot/bundle/{{batch.bundle_id.id}}"/>
|
||||||
|
&emsp;
|
||||||
|
<a groups="runbot.group_runbot_advanced_user" t-attf-href="/web/#id={{batch.id}}&view_type=form&model=runbot.batch&menu_id={{env.ref('runbot.runbot_menu_root').id}}" class="btn btn-default btn-sm" target="new" title="View Batch in Backend">
|
||||||
|
<i class="fa fa-list"/>
|
||||||
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr t-if="batch.category_id.id != default_category">
|
<tr t-if="batch.category_id.id != default_category">
|
||||||
|
Loading…
Reference in New Issue
Block a user