Whitelist method for adding production orders ops (#9997)

This commit is contained in:
bcornwellmott 2017-07-24 10:13:44 -07:00 committed by Nabin Hait
parent 27334c28a9
commit 1c32f5ace9

View File

@ -510,6 +510,12 @@ def check_if_scrap_warehouse_mandatory(bom_no):
return res
@frappe.whitelist()
def set_production_order_ops(name):
po = frappe.get_doc('Production Order', name)
po.set_production_order_operations()
po.save()
@frappe.whitelist()
def make_stock_entry(production_order_id, purpose, qty=None):
production_order = frappe.get_doc("Production Order", production_order_id)