mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract: Missing migration to 13.0
This commit is contained in:
committed by
Francisco Ivan Anton Prieto
parent
96cb85bf50
commit
12c8ae3f31
@@ -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",
|
||||||
|
|||||||
@@ -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,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user