[minor] cleanup

This commit is contained in:
Rushabh Mehta
2017-06-22 18:16:51 +05:30
parent 919a74ad88
commit 25366a22ad
5 changed files with 13 additions and 7 deletions

View File

@@ -32,8 +32,6 @@ def update_address_template():
).insert()
def add_hsn_codes():
frappe.reload_doc('regional', 'doctype', 'gst_hsn_code')
if frappe.db.count('GST HSN Code') > 100:
return
@@ -55,8 +53,6 @@ def add_custom_roles_for_reports():
for report_name in ('GST Sales Register', 'GST Purchase Register',
'GST Itemised Sales Register', 'GST Itemised Purchase Register'):
frappe.reload_doc('regional', 'report', frappe.scrub(report_name))
if not frappe.db.get_value('Custom Role', dict(report=report_name)):
frappe.get_doc(dict(
doctype='Custom Role',