diff --git a/sf_manufacturing/models/stock.py b/sf_manufacturing/models/stock.py index 02018a11..57fb443f 100644 --- a/sf_manufacturing/models/stock.py +++ b/sf_manufacturing/models/stock.py @@ -754,7 +754,7 @@ class ReStockMove(models.Model): if move.product_id.categ_id.type == '成品': move.part_number = move.product_id.part_number move.part_name = move.product_id.part_name - elif move.product_id.categ_id.type == '坯料': + elif move.product_id.categ_id.type == '坯料' or move.product_id.categ_id.type == '原材料': product_name = '' match = re.search(r'(S\d{5}-\d)', move.product_id.name) # 如果匹配成功,提取结果