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 = ''