[FIX] contract: Missing migration to 13.0

This commit is contained in:
Víctor Martínez
2021-01-04 17:08:49 +01:00
committed by Francisco Ivan Anton Prieto
parent 96cb85bf50
commit 12c8ae3f31
2 changed files with 4 additions and 10 deletions

View File

@@ -99,19 +99,13 @@ class ContractContract(models.Model):
ondelete="restrict", ondelete="restrict",
readonly=True, readonly=True,
copy=False, copy=False,
track_visibility="onchange", tracking=True,
) )
terminate_comment = fields.Text( terminate_comment = fields.Text(
string="Termination Comment", string="Termination Comment", readonly=True, copy=False, tracking=True,
readonly=True,
copy=False,
track_visibility="onchange",
) )
terminate_date = fields.Date( terminate_date = fields.Date(
string="Termination Date", string="Termination Date", readonly=True, copy=False, tracking=True,
readonly=True,
copy=False,
track_visibility="onchange",
) )
modification_ids = fields.One2many( modification_ids = fields.One2many(
comodel_name="contract.modification", comodel_name="contract.modification",

View File

@@ -9,7 +9,7 @@ class ContractTag(models.Model):
_name = "contract.tag" _name = "contract.tag"
_description = "Contract Tag" _description = "Contract Tag"
name = fields.Char(requirment=True) name = fields.Char(required=True)
company_id = fields.Many2one( company_id = fields.Many2one(
"res.company", string="Company", default=lambda self: self.env.company.id, "res.company", string="Company", default=lambda self: self.env.company.id,
) )