Reload explosion and scrap items docs

This commit is contained in:
Ben Cornwell-Mott 2017-06-15 08:52:55 -07:00
parent d53dd7f4c9
commit 7055446508

View File

@ -6,6 +6,8 @@ import frappe
def execute():
frappe.reload_doc('manufacturing', 'doctype', 'bom_item')
frappe.reload_doc('manufacturing', 'doctype', 'bom_explosion_item')
frappe.reload_doc('manufacturing', 'doctype', 'bom_scrap_item')
frappe.db.sql("update `tabBOM Item` set stock_qty = qty, uom = stock_uom")
frappe.db.sql("update `tabBOM Explosion Item` set stock_qty = qty")
frappe.db.sql("update `tabBOM Scrap Item` set stock_qty = qty")