mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
fix: item list and project not being set in work order when created from material request
This commit is contained in:
@@ -833,10 +833,11 @@ def raise_work_orders(material_request):
|
||||
"material_request_item": d.name,
|
||||
"planned_start_date": mr.transaction_date,
|
||||
"company": mr.company,
|
||||
"project": d.project,
|
||||
}
|
||||
)
|
||||
|
||||
wo_order.set_work_order_operations()
|
||||
wo_order.get_items_and_operations_from_bom()
|
||||
wo_order.flags.ignore_validate = True
|
||||
wo_order.flags.ignore_mandatory = True
|
||||
wo_order.save()
|
||||
|
||||
Reference in New Issue
Block a user