brotherton-erpnext/erpnext/patches/v11_0/add_permissions_in_gst_settings.py
Nabin Hait 504a5f3a3a
fix: reload income_tax_slab_other_charges in patch (#21447)
* fix: reload income_tax_slab_other_charges in patch

* fix: reload lower_deduction_certificate in patch
2020-04-28 11:16:04 +05:30

10 lines
274 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
frappe.reload_doc("regional", "doctype", "lower_deduction_certificate")
add_permissions()