mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[14.0][FIX] rma_sale: compatibility with refunds free of charge
This commit is contained in:
committed by
JasminSForgeFlow
parent
9f100b2a03
commit
3807cd329f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user