From 5a24cfcc54ec7ba7b5e56555434a1fe511eec614 Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Mon, 28 Oct 2019 17:52:30 +0100 Subject: [PATCH] [12.0][FIX] - contract company must be the same as the sale order When creating a contract from a sale order the company must be the sale order company and not the user company --- contract/models/abstract_contract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contract/models/abstract_contract.py b/contract/models/abstract_contract.py index a3a63b4e..398d79d4 100644 --- a/contract/models/abstract_contract.py +++ b/contract/models/abstract_contract.py @@ -14,7 +14,7 @@ class ContractAbstractContract(models.AbstractModel): _description = 'Abstract Recurring Contract' # These fields will not be synced to the contract - NO_SYNC = ['name', 'partner_id'] + NO_SYNC = ['name', 'partner_id', 'company_id'] name = fields.Char(required=True) # Needed for avoiding errors on several inherited behaviors