mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 17:45:04 +00:00
fix: item list and project not being set in work order when created from material request
(cherry picked from commit 099a5fbad9)
This commit is contained in:
@@ -764,10 +764,11 @@ def raise_work_orders(material_request):
|
|||||||
"material_request_item": d.name,
|
"material_request_item": d.name,
|
||||||
"planned_start_date": mr.transaction_date,
|
"planned_start_date": mr.transaction_date,
|
||||||
"company": mr.company,
|
"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_validate = True
|
||||||
wo_order.flags.ignore_mandatory = True
|
wo_order.flags.ignore_mandatory = True
|
||||||
wo_order.save()
|
wo_order.save()
|
||||||
|
|||||||
Reference in New Issue
Block a user