From 9a57d1aee595cb18832ae72c92fcde332a8a21eb Mon Sep 17 00:00:00 2001 From: AaronHForgeFlow Date: Wed, 19 Jan 2022 18:16:13 +0100 Subject: [PATCH] [14.0][IMP] rma_account: make refund policy editable in approved rmas * small fix in tests --- rma_account/models/rma_order_line.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rma_account/models/rma_order_line.py b/rma_account/models/rma_order_line.py index cfdedfb6..745c0dac 100644 --- a/rma_account/models/rma_order_line.py +++ b/rma_account/models/rma_order_line.py @@ -93,8 +93,7 @@ class RmaOrderLine(models.Model): string="Refund Policy", required=True, default="no", - readonly=True, - states={"draft": [("readonly", False)], "approved": [("readonly", False)]}, + readonly=False, ) qty_to_refund = fields.Float( string="Qty To Refund",