From 3807cd329fa670a0400b7695e85c18cac6e08b56 Mon Sep 17 00:00:00 2001 From: AaronHForgeFlow Date: Thu, 5 Jan 2023 11:11:41 +0100 Subject: [PATCH] [14.0][FIX] rma_sale: compatibility with refunds free of charge --- rma_sale/wizards/rma_refund.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rma_sale/wizards/rma_refund.py b/rma_sale/wizards/rma_refund.py index 0f789ec7..cc8ea048 100644 --- a/rma_sale/wizards/rma_refund.py +++ b/rma_sale/wizards/rma_refund.py @@ -14,6 +14,8 @@ class RmaRefund(models.TransientModel): def _get_refund_price_unit(self, rma): price_unit = super(RmaRefund, self)._get_refund_price_unit(rma) + if rma.operation_id.refund_free_of_charge: + return price_unit if rma.type == "customer": if rma.account_move_line_id: price_unit = rma.account_move_line_id.price_unit