Skip to content

Commit

Permalink
fix: ignore mandatory fields while saving WO (backport #36954) (#36970)
Browse files Browse the repository at this point in the history
fix: ignore mandatory fields while saving WO (#36954)

(cherry picked from commit f809e12)

Co-authored-by: s-aga-r <[email protected]>
  • Loading branch information
mergify[bot] and s-aga-r authored Sep 5, 2023
1 parent 1192736 commit c125dea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/stock/doctype/material_request/material_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ def raise_work_orders(material_request):
)

wo_order.set_work_order_operations()
wo_order.flags.ignore_mandatory = True
wo_order.save()

work_orders.append(wo_order.name)
Expand Down

0 comments on commit c125dea

Please sign in to comment.