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

This commit is contained in:
mgw
2024-12-05 17:01:10 +08:00
parent e3db40ae25
commit 08e4541a96

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'})