[FIX] No contract line and invoices when contract is archived

This commit is contained in:
fkantelberg
2023-01-24 09:54:12 +01:00
committed by Christopher Rogos
parent d632ea3ae2
commit cf36d389e0
2 changed files with 2 additions and 6 deletions

View File

@@ -57,6 +57,7 @@ class ContractContract(models.Model):
comodel_name="contract.line",
inverse_name="contract_id",
copy=True,
context={"active_test": False},
)
# Trick for being able to have 2 different views for the same o2m
# We need this as one2many widget doesn't allow to define in the view
@@ -67,6 +68,7 @@ class ContractContract(models.Model):
string="Contract lines (fixed)",
comodel_name="contract.line",
inverse_name="contract_id",
context={"active_test": False},
)
user_id = fields.Many2one(