minor fix
This commit is contained in:
parent
e07bf15de2
commit
c13960ddc9
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user