From 0bb434af3fdfc1e042e1808129f3523264b7b1c6 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 6 Mar 2017 18:52:34 +0530 Subject: [PATCH] minor fix in patch --- erpnext/patches/v7_2/stock_uom_in_selling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/patches/v7_2/stock_uom_in_selling.py b/erpnext/patches/v7_2/stock_uom_in_selling.py index 51d6ea7423..875fc4e6b9 100644 --- a/erpnext/patches/v7_2/stock_uom_in_selling.py +++ b/erpnext/patches/v7_2/stock_uom_in_selling.py @@ -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)) \ No newline at end of file