Accept Merge Request #1606: (feature/制造功能优化 -> develop)

Merge Request: 特殊表面工艺采购单还是有合并的情况-且重复了

Created By: @马广威
Accepted By: @马广威
URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1606?initial=true
This commit is contained in:
马广威
2024-12-05 17:03:08 +08:00
committed by Coding

View File

@@ -247,8 +247,8 @@ class RePurchaseOrder(models.Model):
raise UserError('请对【产品】中的【税】进行选择')
def get_purchase_order(self, consecutive_process_parameters, production, product_id_to_production_names):
server_product_process = []
for pp in consecutive_process_parameters:
server_product_process = []
purchase_order = pp._get_surface_technics_purchase_ids()
if purchase_order:
purchase_order.write({'state': 'draft'})