Browse Source

[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
13.0-mig-contract
sbejaoui 5 years ago
committed by Administrator
parent
commit
5a24cfcc54
  1. 2
      contract/models/abstract_contract.py

2
contract/models/abstract_contract.py

@ -14,7 +14,7 @@ class ContractAbstractContract(models.AbstractModel):
_description = 'Abstract Recurring Contract' _description = 'Abstract Recurring Contract'
# These fields will not be synced to the 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) name = fields.Char(required=True)
# Needed for avoiding errors on several inherited behaviors # Needed for avoiding errors on several inherited behaviors

Loading…
Cancel
Save