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