Whitelist method for adding production orders ops (#9997)
This commit is contained in:
parent
27334c28a9
commit
1c32f5ace9
@ -510,6 +510,12 @@ def check_if_scrap_warehouse_mandatory(bom_no):
|
|||||||
|
|
||||||
return res
|
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()
|
@frappe.whitelist()
|
||||||
def make_stock_entry(production_order_id, purpose, qty=None):
|
def make_stock_entry(production_order_id, purpose, qty=None):
|
||||||
production_order = frappe.get_doc("Production Order", production_order_id)
|
production_order = frappe.get_doc("Production Order", production_order_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user