From 2298b6430a91f2a4c3f85376a1e8a7d4533af45a Mon Sep 17 00:00:00 2001 From: William Braeckman Date: Thu, 28 Nov 2024 13:05:31 +0100 Subject: [PATCH] [IMP] runbot: add mail.thread to upgrade exception Makes it easier to track when to remove upgrade exceptions. --- runbot/models/upgrade.py | 3 ++- runbot/views/upgrade.xml | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/runbot/models/upgrade.py b/runbot/models/upgrade.py index abefdb93..cea4fa2f 100644 --- a/runbot/models/upgrade.py +++ b/runbot/models/upgrade.py @@ -6,8 +6,9 @@ from odoo.exceptions import UserError class UpgradeExceptions(models.Model): _name = 'runbot.upgrade.exception' _description = 'Upgrade exception' + _inherit = ['mail.thread', 'mail.activity.mixin'] - active = fields.Boolean('Active', default=True) + active = fields.Boolean('Active', default=True, tracking=True) elements = fields.Text('Elements', required=True) bundle_id = fields.Many2one('runbot.bundle', index=True) info = fields.Text('Info') diff --git a/runbot/views/upgrade.xml b/runbot/views/upgrade.xml index 5013a576..6631f336 100644 --- a/runbot/views/upgrade.xml +++ b/runbot/views/upgrade.xml @@ -44,6 +44,11 @@ +
+ + + +