From b44ed5f7a637803f2a630b8cf684b54a6f28ff75 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Wed, 17 Aug 2022 16:46:08 +0200 Subject: [PATCH] [IMP] runbot: active trigger and filter manual - dont display manual trigger having a team if not member of that team - add an active field on triggers --- runbot/models/repo.py | 1 + runbot/templates/batch.xml | 4 +++- runbot/views/repo_views.xml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/runbot/models/repo.py b/runbot/models/repo.py index 54cddf532..414ca7764 100644 --- a/runbot/models/repo.py +++ b/runbot/models/repo.py @@ -57,6 +57,7 @@ class Trigger(models.Model): 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") + active = fields.Boolean("Active", default=True) @api.depends('config_id.step_order_ids.step_id.make_stats') def _compute_has_stats(self): diff --git a/runbot/templates/batch.xml b/runbot/templates/batch.xml index aac94875d..1e74b35f0 100644 --- a/runbot/templates/batch.xml +++ b/runbot/templates/batch.xml @@ -121,7 +121,9 @@ Manual - + + + diff --git a/runbot/views/repo_views.xml b/runbot/views/repo_views.xml index f69ca587f..338411dd2 100644 --- a/runbot/views/repo_views.xml +++ b/runbot/views/repo_views.xml @@ -8,7 +8,9 @@
+ +