表面工艺数据内置与数据同步调整
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user