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:
@@ -46,6 +46,7 @@ class SaleOrder(models.Model):
|
||||
template_name=contract_template.name, sale_name=self.name
|
||||
),
|
||||
'partner_id': self.partner_id.id,
|
||||
'company_id': self.company_id.id,
|
||||
'contract_template_id': contract_template.id,
|
||||
'user_id': self.user_id.id,
|
||||
'payment_term_id': self.payment_term_id.id,
|
||||
|
||||
Reference in New Issue
Block a user