From a382977d39191072004fa20e68e7c540eb5c86ca Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Wed, 17 Aug 2022 11:37:30 +0200 Subject: [PATCH] [IMP] runbot: add teams on trigger. This will be mainy usefull in trigger categories custom view and for dashboards. --- runbot/models/repo.py | 2 ++ runbot/views/repo_views.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/runbot/models/repo.py b/runbot/models/repo.py index f60af754..54cddf53 100644 --- a/runbot/models/repo.py +++ b/runbot/models/repo.py @@ -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: diff --git a/runbot/views/repo_views.xml b/runbot/views/repo_views.xml index a210d103..f69ca587 100644 --- a/runbot/views/repo_views.xml +++ b/runbot/views/repo_views.xml @@ -27,6 +27,7 @@ +