[FIX] rma_repair: under_warranty cannot be editable as it is only

editable in draft state in the related RMA, therefore when you
have created a repair order, the field `under_warranty` is not
editable anymore.
This commit is contained in:
Lois Rilo
2021-03-26 09:47:39 +01:00
committed by JasminSForgeFlow
parent 7579c26f7d
commit 27836c09f8

View File

@@ -11,7 +11,7 @@ class RepairOrder(models.Model):
comodel_name="rma.order.line", string="RMA", ondelete="restrict" comodel_name="rma.order.line", string="RMA", ondelete="restrict"
) )
under_warranty = fields.Boolean( under_warranty = fields.Boolean(
related="rma_line_id.under_warranty", readonly=False related="rma_line_id.under_warranty",
) )
payment_state = fields.Selection( payment_state = fields.Selection(
related="invoice_id.payment_state", string="Payment Status" related="invoice_id.payment_state", string="Payment Status"