From 4979ca5ce0eacfff311e5e89ba8661bc678e2025 Mon Sep 17 00:00:00 2001 From: ahenriquez Date: Thu, 19 Mar 2020 17:18:46 +0100 Subject: [PATCH] [FIX]rma_account call new currency convert method --- rma_account/wizards/rma_add_account_move.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rma_account/wizards/rma_add_account_move.py b/rma_account/wizards/rma_add_account_move.py index 894b5e43..eac2754d 100644 --- a/rma_account/wizards/rma_add_account_move.py +++ b/rma_account/wizards/rma_add_account_move.py @@ -82,8 +82,12 @@ class RmaAddAccountMove(models.TransientModel): "uom_id": line.product_uom_id.id, "operation_id": operation.id, "product_qty": line.quantity, - "price_unit": line.move_id.currency_id.compute( - line.price_unit, line.currency_id, round=False + "price_unit": line.move_id.currency_id._convert( + line.price_unit, + line.currency_id, + line.company_id, + line.date, + round=False, ), "delivery_address_id": line.move_id.partner_id.id, "invoice_address_id": line.move_id.partner_id.id,