diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 1f5f8efeb14..64eccfdae57 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -3578,6 +3578,10 @@ class AccountMoveLine(models.Model): return result + def _valid_field_parameter(self, field, name): + # I can't even + return name == 'tracking' or super()._valid_field_parameter(field, name) + def unlink(self): moves = self.mapped('move_id') diff --git a/addons/gamification/models/goal.py b/addons/gamification/models/goal.py index 3d528a5cab8..9a14a1438c3 100644 --- a/addons/gamification/models/goal.py +++ b/addons/gamification/models/goal.py @@ -153,9 +153,9 @@ class Goal(models.Model): "to generate goals with a value in this field.") start_date = fields.Date("Start Date", default=fields.Date.today) end_date = fields.Date("End Date") # no start and end = always active - target_goal = fields.Float('To Reach', required=True, tracking=True) + target_goal = fields.Float('To Reach', required=True) # no goal = global index - current = fields.Float("Current Value", required=True, default=0, tracking=True) + current = fields.Float("Current Value", required=True, default=0) completeness = fields.Float("Completeness", compute='_get_completion') state = fields.Selection([ ('draft', "Draft"), @@ -163,7 +163,7 @@ class Goal(models.Model): ('reached', "Reached"), ('failed', "Failed"), ('canceled', "Canceled"), - ], default='draft', string='State', required=True, tracking=True) + ], default='draft', string='State', required=True) to_update = fields.Boolean('To update') closed = fields.Boolean('Closed goal', help="These goals will not be recomputed.") diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index 281d47c15c6..f09951061f4 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -599,7 +599,7 @@ class PaymentTransaction(models.Model): help='Internal reference of the TX') acquirer_reference = fields.Char(string='Acquirer Reference', readonly=True, help='Reference of the TX as stored in the acquirer database') # duplicate partner / transaction data to store the values at transaction time - partner_id = fields.Many2one('res.partner', 'Customer', tracking=True) + partner_id = fields.Many2one('res.partner', 'Customer') partner_name = fields.Char('Partner Name') partner_lang = fields.Selection(_lang_get, 'Language', default=lambda self: self.env.lang) partner_email = fields.Char('Email') diff --git a/addons/resource/models/resource.py b/addons/resource/models/resource.py index d24820b1c7d..b6d5d55f7a2 100644 --- a/addons/resource/models/resource.py +++ b/addons/resource/models/resource.py @@ -641,7 +641,7 @@ class ResourceResource(models.Model): name = fields.Char(required=True) active = fields.Boolean( - 'Active', default=True, tracking=True, + 'Active', default=True, help="If the active field is set to False, it will allow you to hide the resource record without removing it.") company_id = fields.Many2one('res.company', string='Company', default=lambda self: self.env.company) resource_type = fields.Selection([