[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
This commit is contained in:
sbejaoui
2019-10-28 17:52:30 +01:00
committed by Stéphane Bidoul (ACSONE)
parent 50f8b94e80
commit e1a399e14b
3 changed files with 15 additions and 1 deletions

View File

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