Skip to content

Commit

Permalink
[FIX] pricehistory should prioritize the company of the product
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Nov 24, 2017
1 parent 4e9aa65 commit 69437c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/product/models/product.py
Expand Up @@ -534,7 +534,7 @@ def _set_standard_price(self, value):
PriceHistory.create({
'product_id': product.id,
'cost': value,
'company_id': self._context.get('force_company', self.env.user.company_id.id),
'company_id': self._context.get('force_company', self.company_id.id or self.env.user.company_id.id),
})

@api.multi
Expand Down

0 comments on commit 69437c8

Please sign in to comment.