summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYenthe V.G <yenthevg@gmail.com>2017-01-12 08:19:52 +0100
committerYannick Tivisse <yti@odoo.com>2017-01-12 10:38:33 +0100
commit2e18f35c4e73655fc4737e02cd6d2f7f105ad849 (patch)
tree737e982c784cc40205d10ea0c342e282e2aa3107
parentf60936fafe37e381d582a1d6b8e84d0b2384e4ed (diff)
[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
-rw-r--r--addons/product/models/product.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/product/models/product.py b/addons/product/models/product.py
index fd75d899983..d612941adf3 100644
--- a/addons/product/models/product.py
+++ b/addons/product/models/product.py
@@ -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