mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 03:45:08 +00:00
fix: ignore mandatory fields while creating WO from SO (#28772)
If fields are made mandatory from customizations the WO creation simply fails.
This commit is contained in:
@@ -978,6 +978,7 @@ def make_work_orders(items, sales_order, company, project=None):
|
||||
description=i['description']
|
||||
)).insert()
|
||||
work_order.set_work_order_operations()
|
||||
work_order.flags.ignore_mandatory = True
|
||||
work_order.save()
|
||||
out.append(work_order)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user