Added conversion_factor update in patch
This commit is contained in:
parent
2c77165fc6
commit
1e96b7bbe5
@ -8,6 +8,6 @@ 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 Item` set stock_qty = qty, uom = stock_uom, conversion_factor = 1")
|
||||
frappe.db.sql("update `tabBOM Explosion Item` set stock_qty = qty")
|
||||
frappe.db.sql("update `tabBOM Scrap Item` set stock_qty = qty")
|
Loading…
x
Reference in New Issue
Block a user