From 0d6097a9243d9b34c56555c4a053e7918ab980db Mon Sep 17 00:00:00 2001 From: Mateu Griful Date: Fri, 3 Sep 2021 09:31:52 +0200 Subject: [PATCH] [12.0][IMP] rma_account: allow to change the refund policy even when the rma has been approved --- rma_account/models/rma_order_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rma_account/models/rma_order_line.py b/rma_account/models/rma_order_line.py index 61e7a5fb..f15389ac 100644 --- a/rma_account/models/rma_order_line.py +++ b/rma_account/models/rma_order_line.py @@ -71,7 +71,7 @@ class RmaOrderLine(models.Model): ('delivered', 'Based on Delivered Quantities'), ('received', 'Based on Received Quantities')], string="Refund Policy", required=True, default='no', - readonly=True, states={'draft': [('readonly', False)]}, + readonly=True, states={'draft': [('readonly', False)], "approved": [("readonly", False)]}, ) qty_to_refund = fields.Float( string='Qty To Refund', copy=False,