From c13960ddc9c277d81177854878988c1ef31a2ec2 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 9 Aug 2018 18:25:03 +0530 Subject: [PATCH] minor fix --- erpnext/patches/v10_0/update_address_template_for_india.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v10_0/update_address_template_for_india.py b/erpnext/patches/v10_0/update_address_template_for_india.py index cb2b1594bb6..145ed452e9c 100644 --- a/erpnext/patches/v10_0/update_address_template_for_india.py +++ b/erpnext/patches/v10_0/update_address_template_for_india.py @@ -6,7 +6,7 @@ import frappe from erpnext.regional.india.setup import update_address_template def execute(): - if frappe.get_cached_value('Company', {'country': 'India'}, 'name'): + if frappe.db.get_value('Company', {'country': 'India'}, 'name'): address_template = frappe.db.get_value('Address Template', 'India', 'template') if not address_template or "gstin" not in address_template: update_address_template()