From c01e9a4d3901b6f9874cee3868e67df0c7bbde36 Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Mon, 21 Oct 2024 14:18: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 6b75ef53..361d6b98 100644 --- a/sf_manufacturing/models/mrp_production.py +++ b/sf_manufacturing/models/mrp_production.py @@ -42,7 +42,7 @@ class MrpProduction(models.Model): sale_order_ids = production.procurement_group_id.mrp_production_ids.move_dest_ids.group_id.sale_id.ids if len(sale_order_ids) < 1: continue - sale_id = self.env['sale.order'].browse(sale_order_ids[0]) + sale_id = self.env['sale.order'].sudo().browse(sale_order_ids[0]) if sale_id: production.deadline_of_delivery = sale_id.deadline_of_delivery