mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: add a frontend button to view batch in backend
This commit is contained in:
parent
c322458c5b
commit
05d072d6eb
@ -625,7 +625,7 @@ class Runbot(Controller):
|
||||
_logger.info('Redirecting to %s', 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):
|
||||
request.env['runbot.build.error']._parse_logs(ir_log)
|
||||
return werkzeug.utils.redirect('/runbot/build/%s' % ir_log.build_id.id)
|
||||
|
@ -10,6 +10,10 @@
|
||||
<td>Bundle</td>
|
||||
<td>
|
||||
<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>
|
||||
</tr>
|
||||
<tr t-if="batch.category_id.id != default_category">
|
||||
|
Loading…
Reference in New Issue
Block a user