Accept Merge Request #1559: (feature/delivery_status -> develop)
Merge Request: 排程 采购单条件判断 Created By: @廖丹龙 Reviewed By: @胡尧 Approved By: @胡尧 Accepted By: @廖丹龙 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1559
This commit is contained in:
@@ -1128,7 +1128,7 @@ class ResMrpWorkOrder(models.Model):
|
||||
if (
|
||||
line.product_id.server_product_process_parameters_id == workorder.surface_technics_parameters_id
|
||||
and line.product_qty == len(production_no_remanufacture)):
|
||||
if purchase_orders.state == 'purchase':
|
||||
if all(pur_order.state == 'purchase' for pur_order in purchase_orders):
|
||||
workorder.state = 'ready'
|
||||
else:
|
||||
workorder.state = 'waiting'
|
||||
|
||||
Reference in New Issue
Block a user