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:
parent
3e1591c145
commit
6efbbb1058
@ -978,6 +978,7 @@ def make_work_orders(items, sales_order, company, project=None):
|
|||||||
description=i['description']
|
description=i['description']
|
||||||
)).insert()
|
)).insert()
|
||||||
work_order.set_work_order_operations()
|
work_order.set_work_order_operations()
|
||||||
|
work_order.flags.ignore_mandatory = True
|
||||||
work_order.save()
|
work_order.save()
|
||||||
out.append(work_order)
|
out.append(work_order)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user