[IMP] runbot: improve team form and build frontend page

* Hide useless pages on backend team form
* Add a team exceptions page on team form
* Show fixed errors as fixed on front build page
This commit is contained in:
Christophe Monniez 2022-12-22 14:06:25 +01:00 committed by xdo
parent 356843c680
commit 76cc74fcd9
2 changed files with 8 additions and 5 deletions

View File

@ -313,7 +313,7 @@
</t>
</td>
</tr>
<t t-if="l.error_id">
<t t-if="l.with_context(active_test=False).error_id">
<t t-set="icon" t-value="'list'"/>
<t t-set="error" t-value="l.error_id"/>
<t t-set="size" t-value=""/>
@ -324,8 +324,8 @@
</t>
<tr>
<td/><td/><td/>
<td t-attf-class="bg-info-light {{size}}">
This error is already known.
<td t-attf-class="bg-{{'info' if error.active else 'success'}}-light {{size}}">
This error is already <t t-esc="'known' if error.active else 'fixed'"/>.
<a groups="runbot.group_user" t-attf-href="/web#id={{l.error_id.id}}&amp;view_type=form&amp;model=runbot.build.error&amp;menu_id={{env.ref('runbot.runbot_menu_root').id}}" title="View in Backend" target="new">
<i t-attf-class="fa fa-{{icon}}"/>
</a>

View File

@ -24,7 +24,7 @@
</tree>
</field>
</page>
<page string="Team Errors">
<page string="Errors" attrs="{'invisible': [('build_error_ids', '=', [])]}">
<field name="build_error_ids" nolabel="1" widget="many2many" options="{'not_delete': True, 'no_create': True}"/>
</page>
<page string="Modules">
@ -39,10 +39,13 @@
<field name="codeowner_ids">
</field>
</page>
<page string="Followed triggers">
<page string="Followed triggers" attrs="{'invisible': [('trigger_ids', '=', [])]}">
<field name="trigger_ids">
</field>
</page>
<page string="Exceptions" attrs="{'invisible': [('upgrade_exception_ids', '=', [])]}">
<field name="upgrade_exception_ids" readonly="1"/>
</page>
</notebook>
</sheet>
<div class="oe_chatter">