From a6f2e5c3d79f7fc7e73a8662fd37075049cdd7b7 Mon Sep 17 00:00:00 2001 From: Jordi Ballester Date: Wed, 2 Mar 2022 11:35:08 +0100 Subject: [PATCH] [IMP] rma: Refactor all rma modules in order to consider using the correct price unit in moves Otherwise the inventory accounting will be completely wrong. --- .../tests/test_account_move_line_rma_order_line.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py b/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py index 936c75e8..5b38e5fd 100644 --- a/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py +++ b/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py @@ -279,10 +279,10 @@ class TestAccountMoveLineRmaOrderLine(common.SavepointCase): } ) make_refund.invoice_refund() - rma_line.refund_line_ids.move_id.filtered( + rma_line.move_line_ids.move_id.filtered( lambda x: x.state != "posted" ).action_post() - for aml in rma_line.refund_line_ids.move_id.filtered( + for aml in rma_line.move_line_ids.move_id.filtered( lambda x: x.move_type in ("out_refund", "in_refund") ).invoice_line_ids: if aml.product_id == rma_line.product_id and aml.move_id: