From 9b98d7fa148c696ec370227b5b817d40f369cc61 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 2 Oct 2017 11:38:40 +0530 Subject: [PATCH] Gst doctype roles (#10984) * Removed default permission from GST doctypes * default permission from GST doctypes --- .../doctype/gst_hsn_code/gst_hsn_code.json | 27 +++---------------- .../doctype/gst_settings/gst_settings.json | 27 +++---------------- erpnext/regional/india/setup.py | 1 - 3 files changed, 6 insertions(+), 49 deletions(-) diff --git a/erpnext/regional/doctype/gst_hsn_code/gst_hsn_code.json b/erpnext/regional/doctype/gst_hsn_code/gst_hsn_code.json index 7b3a8d6b72..2a2145c7f7 100644 --- a/erpnext/regional/doctype/gst_hsn_code/gst_hsn_code.json +++ b/erpnext/regional/doctype/gst_hsn_code/gst_hsn_code.json @@ -84,34 +84,13 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2017-08-31 14:38:52.220743", - "modified_by": "ewdszx@ed.ews", + "modified": "2017-09-29 14:38:52.220743", + "modified_by": "Administrator", "module": "Regional", "name": "GST HSN Code", "name_case": "", "owner": "Administrator", - "permissions": [ - { - "amend": 0, - "apply_user_permissions": 0, - "cancel": 0, - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "set_user_permissions": 0, - "share": 1, - "submit": 0, - "write": 1 - } - ], + "permissions": [], "quick_entry": 1, "read_only": 0, "read_only_onload": 0, diff --git a/erpnext/regional/doctype/gst_settings/gst_settings.json b/erpnext/regional/doctype/gst_settings/gst_settings.json index 04065e29df..67084b45f8 100644 --- a/erpnext/regional/doctype/gst_settings/gst_settings.json +++ b/erpnext/regional/doctype/gst_settings/gst_settings.json @@ -83,34 +83,13 @@ "issingle": 1, "istable": 0, "max_attachments": 0, - "modified": "2017-08-31 14:39:15.625952", - "modified_by": "ewdszx@ed.ews", + "modified": "2017-09-29 14:39:15.625952", + "modified_by": "Administrator", "module": "Regional", "name": "GST Settings", "name_case": "", "owner": "Administrator", - "permissions": [ - { - "amend": 0, - "apply_user_permissions": 0, - "cancel": 0, - "create": 1, - "delete": 1, - "email": 1, - "export": 0, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 1, - "read": 1, - "report": 0, - "role": "System Manager", - "set_user_permissions": 0, - "share": 1, - "submit": 0, - "write": 1 - } - ], + "permissions": [], "quick_entry": 1, "read_only": 0, "read_only_onload": 0, diff --git a/erpnext/regional/india/setup.py b/erpnext/regional/india/setup.py index fb40e32e37..2165023161 100644 --- a/erpnext/regional/india/setup.py +++ b/erpnext/regional/india/setup.py @@ -72,7 +72,6 @@ def add_custom_roles_for_reports(): def add_permissions(): for doctype in ('GST HSN Code', 'GST Settings'): - add_permission(doctype, 'Accounts Manager', 0) add_permission(doctype, 'All', 0) def add_print_formats():