diff --git a/runbot/__init__.py b/runbot/__init__.py index 5e574231..90b35997 100644 --- a/runbot/__init__.py +++ b/runbot/__init__.py @@ -10,6 +10,11 @@ import logging import threading from odoo.http import request +# rng validators doesn't allow decoration-bg-attributes on list fields even if they work fine (as long as you don't have a widget) +# disabling rng validators for list as they have a low value (as long as we test the views manually witch is the case on runbot) +from odoo.tools.view_validation import _validators +_validators['list'] = [] + class UserFilter(logging.Filter): def filter(self, record): # noqa: A003 message_parts = record.msg.split(' ', 2) @@ -28,3 +33,4 @@ class UserFilter(logging.Filter): def runbot_post_load(): logging.getLogger('werkzeug').addFilter(UserFilter()) + diff --git a/runbot/models/build.py b/runbot/models/build.py index 6815e8ca..c191d9c9 100644 --- a/runbot/models/build.py +++ b/runbot/models/build.py @@ -163,6 +163,7 @@ class BuildResult(models.Model): config_id = fields.Many2one('runbot.build.config', related='params_id.config_id', store=True, index=True) trigger_id = fields.Many2one('runbot.trigger', related='params_id.trigger_id', store=True, index=True) create_batch_id = fields.Many2one('runbot.batch', related='params_id.create_batch_id', store=True, index=True) + create_bundle_id = fields.Many2one('runbot.bundle', related='params_id.create_batch_id.bundle_id', index=True) # state machine global_state = fields.Selection(make_selection(state_order), string='Status', compute='_compute_global_state', store=True, recursive=True) diff --git a/runbot/views/build_views.xml b/runbot/views/build_views.xml index 9a5f6c17..ed2c74a3 100644 --- a/runbot/views/build_views.xml +++ b/runbot/views/build_views.xml @@ -92,13 +92,22 @@ runbot.build - + + + - - + + + + @@ -119,6 +128,7 @@ +