[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",
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",

View File

@@ -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,
)