Accept Merge Request #1976: (feature/tool_standard_library_process -> develop)

Merge Request: 子制造订单零件图号零件名称问题

Created By: @廖丹龙
Reviewed By: @胡尧
Approved By: @胡尧 
Accepted By: @廖丹龙
URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1976
This commit is contained in:
廖丹龙
2025-03-27 16:41:19 +08:00
committed by Coding

View File

@@ -280,8 +280,8 @@ class MrpProduction(models.Model):
# 如果匹配成功,提取结果
if match:
product_name = match.group(0)
if production_id.picking_id.sale_order_id:
sale_order = production_id.picking_id.sale_order_id
if production_id.sale_order_id:
sale_order = production_id.sale_order_id
else:
sale_order_name = ''
match = re.search(r'(S\d+)', production_id.product_id.name)