From 82029be6f950e5622a8c76d347bea6e94c62cfd7 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 10 Jun 2014 14:52:49 +0530 Subject: [PATCH] Reload sales taxes and charges in patch --- erpnext/patches/v4_0/update_tax_amount_after_discount.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/patches/v4_0/update_tax_amount_after_discount.py b/erpnext/patches/v4_0/update_tax_amount_after_discount.py index 37f082b290..e935bc4088 100644 --- a/erpnext/patches/v4_0/update_tax_amount_after_discount.py +++ b/erpnext/patches/v4_0/update_tax_amount_after_discount.py @@ -5,6 +5,7 @@ from __future__ import unicode_literals import frappe def execute(): + frappe.reload_doc("accounts", "doctype", "sales_taxes_and_charges") docs_with_discount_amount = frappe._dict() for dt in ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice"]: records = frappe.db.sql_list("""select name from `tab%s`