minor fix in patch

This commit is contained in:
Rohit Waghchaure 2017-03-06 18:52:34 +05:30
parent b3ffd6b282
commit 0bb434af3f

View File

@ -9,5 +9,6 @@ def execute():
doctype_list = ['Sales Order Item', 'Delivery Note Item', 'Quotation Item', 'Sales Invoice Item']
for doctype in doctype_list:
frappe.reload_doctype(doctype)
frappe.db.sql("""update `tab{doctype}`
set uom = stock_uom, conversion_factor = 1, stock_qty = qty""".format(doctype=doctype))