From 84594458848627cac78c007713b5df9145bbdb1d Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Mon, 10 Mar 2025 15:36:45 +0100 Subject: [PATCH] [IMP] runbot: add warning on some config_views the warning will appear on build This is useful to explain the purpose of the build and special attention to give when reading the result. (templates) --- runbot/models/build_config.py | 1 + runbot/templates/build.xml | 8 ++++++++ runbot/views/config_views.xml | 1 + 3 files changed, 10 insertions(+) diff --git a/runbot/models/build_config.py b/runbot/models/build_config.py index 0a4aa155..5fac462a 100644 --- a/runbot/models/build_config.py +++ b/runbot/models/build_config.py @@ -52,6 +52,7 @@ class Config(models.Model): group = fields.Many2one('runbot.build.config', 'Configuration group', help="Group of config's and config steps") group_name = fields.Char('Group name', related='group.name') step_ids = fields.Many2many('runbot.build.config.step', compute='_compute_step_ids') + warning = fields.Html('Warning message', help="Warning message to display on build page") @api.model_create_multi def create(self, vals_list): diff --git a/runbot/templates/build.xml b/runbot/templates/build.xml index cf65c083..33ff3c5d 100644 --- a/runbot/templates/build.xml +++ b/runbot/templates/build.xml @@ -234,6 +234,14 @@ + +
+
+
+ +
+
+
diff --git a/runbot/views/config_views.xml b/runbot/views/config_views.xml index 646e46c8..8d63cbcc 100644 --- a/runbot/views/config_views.xml +++ b/runbot/views/config_views.xml @@ -20,6 +20,7 @@ +