[IMP] runbot: add teams on trigger.

This will be mainy usefull in trigger categories custom view and for
dashboards.
This commit is contained in:
Xavier-Do 2022-08-17 11:37:30 +02:00 committed by Christophe Monniez
parent 5f2fe9a451
commit a382977d39
2 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,8 @@ class Trigger(models.Model):
ci_description = fields.Char("ci description")
has_stats = fields.Boolean('Has a make_stats config step', compute="_compute_has_stats", store=True)
team_ids = fields.Many2many('runbot.team', string="Runbot Teams", help="Teams responsible of this trigger, mainly usefull for nightly")
@api.depends('config_id.step_order_ids.step_id.make_stats')
def _compute_has_stats(self):
for trigger in self:

View File

@ -27,6 +27,7 @@
<field name="ci_url"/>
<field name="ci_description"/>
<field name="has_stats"/>
<field name="team_ids"/>
</group>
</sheet>
</form>