[Fix] Removed roles for Eway bill report (#15157)

This commit is contained in:
rohitwaghchaure 2018-08-20 17:53:56 +05:30 committed by Nabin Hait
parent e3947296e8
commit 8cca61f1ba
3 changed files with 3 additions and 3 deletions

View File

@ -411,7 +411,7 @@ erpnext.patches.v9_0.remove_subscription_module
erpnext.patches.v8_7.make_subscription_from_recurring_data erpnext.patches.v8_7.make_subscription_from_recurring_data
erpnext.patches.v8_1.setup_gst_india #2017-06-27 erpnext.patches.v8_1.setup_gst_india #2017-06-27
execute:frappe.reload_doc('regional', 'doctype', 'gst_hsn_code') execute:frappe.reload_doc('regional', 'doctype', 'gst_hsn_code')
erpnext.patches.v8_1.removed_roles_from_gst_report_non_indian_account erpnext.patches.v8_1.removed_roles_from_gst_report_non_indian_account #16-08-2018
erpnext.patches.v8_1.gst_fixes #2017-07-06 erpnext.patches.v8_1.gst_fixes #2017-07-06
erpnext.patches.v8_0.update_production_orders erpnext.patches.v8_0.update_production_orders
erpnext.patches.v8_1.remove_sales_invoice_from_returned_serial_no erpnext.patches.v8_1.remove_sales_invoice_from_returned_serial_no

View File

@ -15,4 +15,4 @@ def execute():
where where
parenttype = 'Report' and parent in('GST Sales Register', parenttype = 'Report' and parent in('GST Sales Register',
'GST Purchase Register', 'GST Itemised Sales Register', 'GST Purchase Register', 'GST Itemised Sales Register',
'GST Itemised Purchase Register')""") 'GST Itemised Purchase Register', 'Eway Bill')""")

View File

@ -60,7 +60,7 @@ def create_hsn_codes(data, code_field):
def add_custom_roles_for_reports(): def add_custom_roles_for_reports():
for report_name in ('GST Sales Register', 'GST Purchase Register', for report_name in ('GST Sales Register', 'GST Purchase Register',
'GST Itemised Sales Register', 'GST Itemised Purchase Register'): 'GST Itemised Sales Register', 'GST Itemised Purchase Register', 'Eway Bill'):
if not frappe.db.get_value('Custom Role', dict(report=report_name)): if not frappe.db.get_value('Custom Role', dict(report=report_name)):
frappe.get_doc(dict( frappe.get_doc(dict(