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()