From a6c8cd87842e414165656abc34135ee97fd9e9a6 Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Fri, 10 Jan 2025 11:08:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E5=8D=95=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E5=90=8E=E7=A1=AE=E8=AE=A4=E5=B7=A5=E5=8D=95=E5=A4=96=E5=8D=8F?= =?UTF-8?q?=E5=B7=A5=E5=BA=8F=E4=B8=BA=E5=B0=B1=E7=BB=AA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_sale/models/sale_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_sale/models/sale_order.py b/sf_sale/models/sale_order.py index 95ab1ac7..b8115520 100644 --- a/sf_sale/models/sale_order.py +++ b/sf_sale/models/sale_order.py @@ -393,7 +393,7 @@ class RePurchaseOrder(models.Model): if line.product_id.categ_type == '表面工艺': if item.origin: for production_name in item.origin.split(','): - production = self.env['mrp.production'].search([('name', '=', production_name)]) + production = self.env['mrp.production'].search([('name', '=', production_name.strip())]) for workorder in production.workorder_ids.filtered( lambda wd: wd.routing_type == '表面工艺' and wd.state == 'waiting' and line.product_id.server_product_process_parameters_id == wd.surface_technics_parameters_id): workorder.state = 'ready'