Skip to content

Commit 0c4992d

Browse files
fkantelbergortlam
authored andcommitted
[FIX] No contract line and invoices when contract is archived
1 parent b920471 commit 0c4992d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: contract/models/contract.py

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class ContractContract(models.Model):
5757
comodel_name="contract.line",
5858
inverse_name="contract_id",
5959
copy=True,
60+
context={"active_test": False},
6061
)
6162
# Trick for being able to have 2 different views for the same o2m
6263
# We need this as one2many widget doesn't allow to define in the view
@@ -67,6 +68,7 @@ class ContractContract(models.Model):
6768
string="Contract lines (fixed)",
6869
comodel_name="contract.line",
6970
inverse_name="contract_id",
71+
context={"active_test": False},
7072
)
7173

7274
user_id = fields.Many2one(

0 commit comments

Comments
 (0)