From 81b425ae0cb2dc25695d25f8dfff0359595126e3 Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Mon, 24 Mar 2025 17:28:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=8B=A8=E5=8D=95=E9=9B=B6=E4=BB=B6?= =?UTF-8?q?=E5=9B=BE=E5=8F=B7=E9=9B=B6=E4=BB=B6=E5=90=8D=E7=A7=B0=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_manufacturing/models/stock.py b/sf_manufacturing/models/stock.py index 8f5e0023..5c9f7d5a 100644 --- a/sf_manufacturing/models/stock.py +++ b/sf_manufacturing/models/stock.py @@ -787,7 +787,7 @@ class ReStockMove(models.Model): continue logging.info('制造订单的调拨单 %s', move.origin) production_id = self.env['mrp.production'].sudo().search( - [('name', '=', move.origin)], limit=1) + [('name', '=', move.origin.split(',')[0])], limit=1) if not production_id: continue product_name = ''