[IMP] runbot: add a frontend button to view batch in backend

This commit is contained in:
Christophe Monniez 2023-04-03 15:48:09 +02:00 committed by xdo
parent c322458c5b
commit 05d072d6eb
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -10,6 +10,10 @@
<td>Bundle</td>
<td>
<a t-esc="batch.bundle_id.name" t-attf-href="/runbot/bundle/{{batch.bundle_id.id}}"/>
&amp;emsp;
<a groups="runbot.group_runbot_advanced_user" t-attf-href="/web/#id={{batch.id}}&amp;view_type=form&amp;model=runbot.batch&amp;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">