From 85853b6e0b870c2b0f4a80b3adc849bd3d6f3958 Mon Sep 17 00:00:00 2001 From: Berezi Date: Fri, 20 Dec 2024 08:12:40 +0100 Subject: [PATCH] [14.0][IMP] custom_p: --- custom_p/models/sale_order_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_p/models/sale_order_line.py b/custom_p/models/sale_order_line.py index 76622a2123..0b215e933e 100644 --- a/custom_p/models/sale_order_line.py +++ b/custom_p/models/sale_order_line.py @@ -94,6 +94,6 @@ def _get_invoice_qty(self): @api.model def create(self, values): result = super(SaleOrderLine, self).create(values) - if not self.order_id.commitment_date: + if not result.order_id.commitment_date: result.order_id.commitment_date = result.order_id.expected_date return result