From da38d241114a4514401dff858401609c04a9082b Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Tue, 22 Oct 2024 13:33:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B6=E9=80=A0=E8=AE=A2=E5=8D=95=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=AE=A2=E5=8D=95=E4=BA=A4=E6=9C=9F=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/mrp_production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_manufacturing/models/mrp_production.py b/sf_manufacturing/models/mrp_production.py index b956e902..55076fc6 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -40,7 +40,7 @@ class MrpProduction(models.Model): sale_order_id = production.procurement_group_id.mrp_production_ids.move_dest_ids.group_id.sale_id if not sale_order_id: continue - sale_id = self.env['sale.order'].sudo().browse(sale_order_id) + sale_id = self.env['sale.order'].sudo().browse(int(sale_order_id)) if sale_id: production.deadline_of_delivery = sale_id.deadline_of_delivery