brotherton-erpnext/erpnext/patches/v11_0/add_permissions_in_gst_settings.py
2020-04-04 20:05:17 +05:30

9 lines
201 B
Python

import frappe
from erpnext.regional.india.setup import add_permissions
def execute():
company = frappe.get_all('Company', filters = {'country': 'India'})
if not company:
return
add_permissions()