From 0d22fe02be6c35efb0378858c9a33b8ec05d0b5f Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Mon, 28 Aug 2023 22:42:14 +0530 Subject: [PATCH] refactor!: Lower all perm to `Desk User` --- erpnext/crm/doctype/lead/lead.json | 6 +- erpnext/projects/doctype/project/project.json | 4 +- .../quality_action/quality_action.json | 5 +- .../quality_feedback/quality_feedback.json | 5 +- .../doctype/quality_goal/quality_goal.json | 5 +- .../quality_meeting/quality_meeting.json | 7 +- .../quality_procedure/quality_procedure.json | 5 +- .../quality_review/quality_review.json | 5 +- .../setup/doctype/item_group/item_group.json | 5 +- .../doctype/print_heading/print_heading.json | 175 ++++++------------ erpnext/stock/doctype/item/item.json | 4 +- .../service_level_agreement.json | 4 +- 12 files changed, 86 insertions(+), 144 deletions(-) diff --git a/erpnext/crm/doctype/lead/lead.json b/erpnext/crm/doctype/lead/lead.json index 0cb8824577..dafbd9f06d 100644 --- a/erpnext/crm/doctype/lead/lead.json +++ b/erpnext/crm/doctype/lead/lead.json @@ -516,7 +516,7 @@ "idx": 5, "image_field": "image", "links": [], - "modified": "2023-04-14 18:20:05.044791", + "modified": "2023-08-28 22:28:00.104413", "modified_by": "Administrator", "module": "CRM", "name": "Lead", @@ -527,7 +527,7 @@ "permlevel": 1, "read": 1, "report": 1, - "role": "All" + "role": "Desk User" }, { "create": 1, @@ -583,4 +583,4 @@ "states": [], "subject_field": "title", "title_field": "title" -} +} \ No newline at end of file diff --git a/erpnext/projects/doctype/project/project.json b/erpnext/projects/doctype/project/project.json index 502ee57415..715b09c64b 100644 --- a/erpnext/projects/doctype/project/project.json +++ b/erpnext/projects/doctype/project/project.json @@ -453,7 +453,7 @@ "index_web_pages_for_search": 1, "links": [], "max_attachments": 4, - "modified": "2023-06-28 18:57:11.603497", + "modified": "2023-08-28 22:27:28.370849", "modified_by": "Administrator", "module": "Projects", "name": "Project", @@ -475,7 +475,7 @@ "permlevel": 1, "read": 1, "report": 1, - "role": "All" + "role": "Desk User" }, { "create": 1, diff --git a/erpnext/quality_management/doctype/quality_action/quality_action.json b/erpnext/quality_management/doctype/quality_action/quality_action.json index 0cc2a98cd2..f0b33b9eaf 100644 --- a/erpnext/quality_management/doctype/quality_action/quality_action.json +++ b/erpnext/quality_management/doctype/quality_action/quality_action.json @@ -91,7 +91,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2020-10-27 16:21:59.533937", + "modified": "2023-08-28 22:33:14.358143", "modified_by": "Administrator", "module": "Quality Management", "name": "Quality Action", @@ -117,12 +117,13 @@ "print": 1, "read": 1, "report": 1, - "role": "All", + "role": "Desk User", "share": 1, "write": 1 } ], "sort_field": "modified", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/erpnext/quality_management/doctype/quality_feedback/quality_feedback.json b/erpnext/quality_management/doctype/quality_feedback/quality_feedback.json index f3bd0ddb2e..5fe6375fcc 100644 --- a/erpnext/quality_management/doctype/quality_feedback/quality_feedback.json +++ b/erpnext/quality_management/doctype/quality_feedback/quality_feedback.json @@ -61,7 +61,7 @@ "link_fieldname": "feedback" } ], - "modified": "2020-10-27 16:20:10.918544", + "modified": "2023-08-28 22:21:36.144820", "modified_by": "Administrator", "module": "Quality Management", "name": "Quality Feedback", @@ -87,12 +87,13 @@ "print": 1, "read": 1, "report": 1, - "role": "All", + "role": "Desk User", "share": 1, "write": 1 } ], "sort_field": "modified", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/erpnext/quality_management/doctype/quality_goal/quality_goal.json b/erpnext/quality_management/doctype/quality_goal/quality_goal.json index 26802550dc..f2b6ebc589 100644 --- a/erpnext/quality_management/doctype/quality_goal/quality_goal.json +++ b/erpnext/quality_management/doctype/quality_goal/quality_goal.json @@ -76,7 +76,7 @@ "link_fieldname": "goal" } ], - "modified": "2020-10-27 15:57:59.368605", + "modified": "2023-08-28 22:33:27.718899", "modified_by": "Administrator", "module": "Quality Management", "name": "Quality Goal", @@ -102,12 +102,13 @@ "print": 1, "read": 1, "report": 1, - "role": "All", + "role": "Desk User", "share": 1, "write": 1 } ], "sort_field": "modified", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/erpnext/quality_management/doctype/quality_meeting/quality_meeting.json b/erpnext/quality_management/doctype/quality_meeting/quality_meeting.json index e2125c3933..7ab28d8443 100644 --- a/erpnext/quality_management/doctype/quality_meeting/quality_meeting.json +++ b/erpnext/quality_management/doctype/quality_meeting/quality_meeting.json @@ -48,7 +48,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2021-02-27 16:36:45.657883", + "modified": "2023-08-28 22:33:57.447634", "modified_by": "Administrator", "module": "Quality Management", "name": "Quality Meeting", @@ -74,7 +74,7 @@ "print": 1, "read": 1, "report": 1, - "role": "All", + "role": "Desk User", "share": 1, "write": 1 } @@ -82,5 +82,6 @@ "quick_entry": 1, "sort_field": "modified", "sort_order": "DESC", + "states": [], "track_changes": 1 -} +} \ No newline at end of file diff --git a/erpnext/quality_management/doctype/quality_procedure/quality_procedure.json b/erpnext/quality_management/doctype/quality_procedure/quality_procedure.json index f588f9aea1..176669ffbc 100644 --- a/erpnext/quality_management/doctype/quality_procedure/quality_procedure.json +++ b/erpnext/quality_management/doctype/quality_procedure/quality_procedure.json @@ -115,7 +115,7 @@ "link_fieldname": "procedure" } ], - "modified": "2020-10-26 15:25:39.316088", + "modified": "2023-08-28 22:33:36.483420", "modified_by": "Administrator", "module": "Quality Management", "name": "Quality Procedure", @@ -142,12 +142,13 @@ "print": 1, "read": 1, "report": 1, - "role": "All", + "role": "Desk User", "share": 1, "write": 1 } ], "sort_field": "modified", "sort_order": "DESC", + "states": [], "track_changes": 1 } \ No newline at end of file diff --git a/erpnext/quality_management/doctype/quality_review/quality_review.json b/erpnext/quality_management/doctype/quality_review/quality_review.json index 31ad341362..f38e8a50d6 100644 --- a/erpnext/quality_management/doctype/quality_review/quality_review.json +++ b/erpnext/quality_management/doctype/quality_review/quality_review.json @@ -84,7 +84,7 @@ "link_fieldname": "review" } ], - "modified": "2020-10-21 12:56:47.046172", + "modified": "2023-08-28 22:33:22.472980", "modified_by": "Administrator", "module": "Quality Management", "name": "Quality Review", @@ -110,7 +110,7 @@ "print": 1, "read": 1, "report": 1, - "role": "All", + "role": "Desk User", "share": 1, "write": 1 }, @@ -129,6 +129,7 @@ ], "sort_field": "modified", "sort_order": "DESC", + "states": [], "title_field": "goal", "track_changes": 1 } \ No newline at end of file diff --git a/erpnext/setup/doctype/item_group/item_group.json b/erpnext/setup/doctype/item_group/item_group.json index 2986087277..e0f5090474 100644 --- a/erpnext/setup/doctype/item_group/item_group.json +++ b/erpnext/setup/doctype/item_group/item_group.json @@ -233,7 +233,7 @@ "is_tree": 1, "links": [], "max_attachments": 3, - "modified": "2023-01-05 12:21:30.458628", + "modified": "2023-08-28 22:27:48.382985", "modified_by": "Administrator", "module": "Setup", "name": "Item Group", @@ -266,7 +266,6 @@ "read": 1, "report": 1, "role": "Item Manager", - "set_user_permissions": 1, "share": 1, "write": 1 }, @@ -296,7 +295,7 @@ "export": 1, "print": 1, "report": 1, - "role": "All", + "role": "Desk User", "select": 1, "share": 1 } diff --git a/erpnext/setup/doctype/print_heading/print_heading.json b/erpnext/setup/doctype/print_heading/print_heading.json index dc07f0c8d8..1083583037 100644 --- a/erpnext/setup/doctype/print_heading/print_heading.json +++ b/erpnext/setup/doctype/print_heading/print_heading.json @@ -1,131 +1,68 @@ { - "allow_copy": 0, - "allow_import": 1, - "allow_rename": 1, - "autoname": "field:print_heading", - "beta": 0, - "creation": "2013-01-10 16:34:24", - "custom": 0, - "docstatus": 0, - "doctype": "DocType", - "document_type": "Setup", - "editable_grid": 0, + "actions": [], + "allow_import": 1, + "allow_rename": 1, + "autoname": "field:print_heading", + "creation": "2013-01-10 16:34:24", + "doctype": "DocType", + "document_type": "Setup", + "engine": "InnoDB", + "field_order": [ + "print_heading", + "description" + ], "fields": [ { - "allow_on_submit": 1, - "bold": 0, - "collapsible": 0, - "fieldname": "print_heading", - "fieldtype": "Data", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 1, - "in_list_view": 1, - "label": "Print Heading", - "length": 0, - "no_copy": 0, - "oldfieldname": "print_heading", - "oldfieldtype": "Data", - "permlevel": 0, - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "report_hide": 0, - "reqd": 1, - "search_index": 0, - "set_only_once": 0, - "unique": 0 - }, + "allow_on_submit": 1, + "fieldname": "print_heading", + "fieldtype": "Data", + "in_filter": 1, + "in_list_view": 1, + "label": "Print Heading", + "oldfieldname": "print_heading", + "oldfieldtype": "Data", + "reqd": 1, + "unique": 1 + }, { - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "fieldname": "description", - "fieldtype": "Small Text", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_list_view": 1, - "label": "Description", - "length": 0, - "no_copy": 0, - "oldfieldname": "description", - "oldfieldtype": "Small Text", - "permlevel": 0, - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "unique": 0, + "fieldname": "description", + "fieldtype": "Small Text", + "in_list_view": 1, + "label": "Description", + "oldfieldname": "description", + "oldfieldtype": "Small Text", "width": "300px" } - ], - "hide_heading": 0, - "hide_toolbar": 0, - "icon": "fa fa-font", - "idx": 1, - "image_view": 0, - "in_create": 0, - - "is_submittable": 0, - "issingle": 0, - "istable": 0, - "max_attachments": 0, - "modified": "2016-07-25 05:24:25.628101", - "modified_by": "Administrator", - "module": "Setup", - "name": "Print Heading", - "owner": "Administrator", + ], + "icon": "fa fa-font", + "idx": 1, + "links": [], + "modified": "2023-08-28 22:17:42.041255", + "modified_by": "Administrator", + "module": "Setup", + "name": "Print Heading", + "naming_rule": "By fieldname", + "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": 1, - "role": "System Manager", - "set_user_permissions": 0, - "share": 1, - "submit": 0, + "create": 1, + "delete": 1, + "email": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, "write": 1 - }, + }, { - "amend": 0, - "apply_user_permissions": 0, - "cancel": 0, - "create": 0, - "delete": 0, - "email": 0, - "export": 0, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 0, - "read": 1, - "report": 0, - "role": "All", - "set_user_permissions": 0, - "share": 0, - "submit": 0, - "write": 0 + "read": 1, + "role": "Desk User" } - ], - "quick_entry": 1, - "read_only": 0, - "read_only_onload": 0, - "search_fields": "print_heading", - "track_seen": 0 + ], + "quick_entry": 1, + "search_fields": "print_heading", + "sort_field": "modified", + "sort_order": "DESC", + "states": [] } \ No newline at end of file diff --git a/erpnext/stock/doctype/item/item.json b/erpnext/stock/doctype/item/item.json index 87c2a7ea69..756d0040f1 100644 --- a/erpnext/stock/doctype/item/item.json +++ b/erpnext/stock/doctype/item/item.json @@ -912,7 +912,7 @@ "index_web_pages_for_search": 1, "links": [], "make_attachments_public": 1, - "modified": "2023-07-14 17:18:18.658942", + "modified": "2023-08-28 22:16:40.305094", "modified_by": "Administrator", "module": "Stock", "name": "Item", @@ -971,7 +971,7 @@ "export": 1, "print": 1, "report": 1, - "role": "All", + "role": "Desk User", "select": 1, "share": 1 } diff --git a/erpnext/support/doctype/service_level_agreement/service_level_agreement.json b/erpnext/support/doctype/service_level_agreement/service_level_agreement.json index 1c6f24b23c..5882033075 100644 --- a/erpnext/support/doctype/service_level_agreement/service_level_agreement.json +++ b/erpnext/support/doctype/service_level_agreement/service_level_agreement.json @@ -192,7 +192,7 @@ } ], "links": [], - "modified": "2023-04-21 17:16:56.192560", + "modified": "2023-08-28 22:17:54.740924", "modified_by": "Administrator", "module": "Support", "name": "Service Level Agreement", @@ -213,7 +213,7 @@ }, { "read": 1, - "role": "All" + "role": "Desk User" } ], "sort_field": "modified",