Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion product_replenishment_cost/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Replenishment Cost",
"version": "18.0.1.1.0",
"version": "18.0.1.2.0",
"author": "ADHOC SA, Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Products",
Expand Down
7 changes: 4 additions & 3 deletions product_replenishment_cost/models/purchase_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ def _compute_price_unit_and_date_planned_and_name(self):
if seller
else 0.0
)
price_unit = seller.currency_id._convert(
price_unit, line.currency_id, line.company_id, line.date_order or fields.Date.today()
)
if seller.currency_id and line.currency_id and seller.currency_id != line.currency_id:
price_unit = seller.currency_id._convert(
price_unit, line.currency_id, line.company_id, line.date_order or fields.Date.today()
)

if seller and line.product_uom and seller.product_uom != line.product_uom:
price_unit = seller.product_uom._compute_price(price_unit, line.product_uom)
Expand Down
Loading