minor fix

This commit is contained in:
Nabin Hait 2018-08-09 18:25:03 +05:30
parent e07bf15de2
commit c13960ddc9

View File

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