采购申请数量与产品数量不一致问题
This commit is contained in:
@@ -928,6 +928,8 @@ class MrpProduction(models.Model):
|
||||
'sf_stock.stock_route_process_outsourcing').id)]
|
||||
for product_id, request_line_list in grouped_purchase_request_line_sorted_list.items():
|
||||
cur_request_line = request_line_list[0]
|
||||
if cur_request_line['product_qty'] == 1:
|
||||
cur_request_line['product_qty'] = len(request_line_list)
|
||||
# cur_request_line['product_qty'] = cur_request_line['product_qty']
|
||||
cur_request_line['request_id'] = pr.id
|
||||
cur_request_line['origin'] = ", ".join({item['production_name'] for item in request_line_list if item.get('production_name')})
|
||||
|
||||
Reference in New Issue
Block a user