mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[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:
committed by
Stéphane Bidoul (ACSONE)
parent
50f8b94e80
commit
e1a399e14b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user