From 60539462a0cc4ef95a2a2e9ec70d1bd7b645238f Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Tue, 25 Mar 2025 10:02:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=A4=84=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 5c9f7d5a..5c75bc4d 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.split(',')[0])], limit=1) + [('name', '=', move.origin.split(',')[0] if move.origin else '')], limit=1) if not production_id: continue product_name = ''