Merge pull request #178 from ForgeFlow/12.0-rma_account-refund_policy-editable

[12.0][IMP] rma_account: allow to change the refund policy when rma is approved
This commit is contained in:
Jordi Ballester Alomar
2021-09-03 09:56:50 +02:00
committed by GitHub

View File

@@ -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,