[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:
Yenthe V.G
2017-01-12 10:38:33 +01:00
committed by Yannick Tivisse
parent f60936fafe
commit 2e18f35c4e
+1 -1
View File
@@ -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