表面工艺数据内置与数据同步调整

This commit is contained in:
liaodanlong
2025-04-14 15:23:47 +08:00
parent ec379a7541
commit 61a3cf606e
16 changed files with 261 additions and 10 deletions

View File

@@ -376,6 +376,21 @@ class RePurchaseOrder(models.Model):
if not line.taxes_id:
raise UserError('请对【产品】中的【税】进行选择')
def get_purchase_request(self, consecutive_process_parameters, production):
result = []
for pp in consecutive_process_parameters:
result.append({
"product_id": pp.product_id.id,
"name": production.name,
"date_required": fields.Datetime.now(),
"product_uom_id":pp.product_id.uom_po_id.id,
"product_qty": 1,
"request_id": False,
"move_dest_ids": False,
"orderpoint_id": False,
})
return result
def get_purchase_order(self, consecutive_process_parameters, production, product_id_to_production_names):
for pp in consecutive_process_parameters:
server_product_process = []