From da4962abf0d08a30c6d25660000c3ef9072172fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Mon, 4 Jan 2021 17:08:49 +0100 Subject: [PATCH] [FIX] contract: Missing migration to 13.0 --- contract/models/contract.py | 12 +++--------- contract/models/contract_tag.py | 2 +- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/contract/models/contract.py b/contract/models/contract.py index 79436959f..6b7f2a553 100644 --- a/contract/models/contract.py +++ b/contract/models/contract.py @@ -99,19 +99,13 @@ class ContractContract(models.Model): ondelete="restrict", readonly=True, copy=False, - track_visibility="onchange", + tracking=True, ) terminate_comment = fields.Text( - string="Termination Comment", - readonly=True, - copy=False, - track_visibility="onchange", + string="Termination Comment", readonly=True, copy=False, tracking=True, ) terminate_date = fields.Date( - string="Termination Date", - readonly=True, - copy=False, - track_visibility="onchange", + string="Termination Date", readonly=True, copy=False, tracking=True, ) modification_ids = fields.One2many( comodel_name="contract.modification", diff --git a/contract/models/contract_tag.py b/contract/models/contract_tag.py index c45bf06c2..96196fbc7 100644 --- a/contract/models/contract_tag.py +++ b/contract/models/contract_tag.py @@ -9,7 +9,7 @@ class ContractTag(models.Model): _name = "contract.tag" _description = "Contract Tag" - name = fields.Char(requirment=True) + name = fields.Char(required=True) company_id = fields.Many2one( "res.company", string="Company", default=lambda self: self.env.company.id, )