diff --git a/erpnext/patches/v8_1/setup_gst_india.py b/erpnext/patches/v8_1/setup_gst_india.py index 9e54815a134..765d84ae53f 100644 --- a/erpnext/patches/v8_1/setup_gst_india.py +++ b/erpnext/patches/v8_1/setup_gst_india.py @@ -11,7 +11,7 @@ def execute(): if frappe.db.get_single_value('System Settings', 'country')=='India': from erpnext.regional.india.setup import setup - setup() + setup(patch=True) send_gst_update_email() def send_gst_update_email(): diff --git a/erpnext/regional/india/setup.py b/erpnext/regional/india/setup.py index 46f0a96f3bc..ffcc998105e 100644 --- a/erpnext/regional/india/setup.py +++ b/erpnext/regional/india/setup.py @@ -8,13 +8,14 @@ from frappe.custom.doctype.custom_field.custom_field import create_custom_field from frappe.permissions import add_permission from erpnext.regional.india import states -def setup(company=None): +def setup(company=None, patch=True): make_custom_fields() - make_fixtures() add_permissions() add_custom_roles_for_reports() add_hsn_codes() update_address_template() + if not patch: + make_fixtures() def update_address_template(): with open(os.path.join(os.path.dirname(__file__), 'address_template.html'), 'r') as f: