[FIX] product: Rename invalid context variable
The context uses an invalid name, which means it'll never work correctly. fixes #15028 Bug coming from the module migration
This commit is contained in:
committed by
Yannick Tivisse
parent
f60936fafe
commit
2e18f35c4e
@@ -548,7 +548,7 @@ class ProductProduct(models.Model):
|
||||
PriceHistory.create({
|
||||
'product_id': product.id,
|
||||
'cost': value,
|
||||
'company_id': self._context.get('force_compay', self.env.user.company_id.id),
|
||||
'company_id': self._context.get('force_company', self.env.user.company_id.id),
|
||||
})
|
||||
|
||||
@api.multi
|
||||
|
||||
Reference in New Issue
Block a user