Skip to content

Commit

Permalink
[12.0] [FIX] product_replenishment_cost: Set user company when the pr…
Browse files Browse the repository at this point in the history
…oduct doesn't have one.
  • Loading branch information
nicomacr committed Feb 9, 2021
1 parent 8b530e6 commit 9551336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion product_replenishment_cost/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _update_cost_from_replenishment_cost(self):
if product.currency_id != product.user_company_currency_id:
replenishment_cost = product.currency_id._convert(
replenishment_cost, product.user_company_currency_id,
product.company_id, fields.Date.today(),
product.company_id or self.env.user.company_id, fields.Date.today(),
round=False)
if float_compare(
product.standard_price,
Expand Down

0 comments on commit 9551336

Please sign in to comment.