From cd78a39410eeca7af41bb8af437e4ff578f12be4 Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Wed, 26 Feb 2025 11:30:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=B9=E9=85=8D=E8=A7=84=E5=88=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/purchase_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_manufacturing/models/purchase_order.py b/sf_manufacturing/models/purchase_order.py index b7ec1bc2..a16eb120 100644 --- a/sf_manufacturing/models/purchase_order.py +++ b/sf_manufacturing/models/purchase_order.py @@ -124,7 +124,7 @@ class PurchaseOrderLine(models.Model): if match: product_name = match.group(0) sale_order_name = '' - match_sale = re.search(r'(\d+)', record.product_id.name) + match_sale = re.search(r'S(\d+)', record.product_id.name) if match_sale: sale_order_name = match_sale.group(0) sale_order = self.env['sale.order'].sudo().search(