From 648a5c7e3380f1ea280d41d4987a12dae0265947 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 23 Jul 2013 12:07:55 +0530 Subject: [PATCH] [fix] added required permissions for fiscal year, brand, company, country, currency, item group, price list, uom and warehouse --- accounts/doctype/fiscal_year/fiscal_year.txt | 22 ++++++---- setup/doctype/brand/brand.txt | 14 ++++++- setup/doctype/company/company.txt | 24 ++++++----- setup/doctype/country/country.txt | 43 +++++++++++++------- setup/doctype/currency/currency.txt | 26 ++++++++---- setup/doctype/item_group/item_group.txt | 20 +++++++-- setup/doctype/price_list/price_list.txt | 30 ++++++++------ setup/doctype/uom/uom.txt | 16 ++++++-- stock/doctype/warehouse/warehouse.txt | 22 ++++++++-- 9 files changed, 151 insertions(+), 66 deletions(-) diff --git a/accounts/doctype/fiscal_year/fiscal_year.txt b/accounts/doctype/fiscal_year/fiscal_year.txt index 511adf5571..6d64fcd639 100644 --- a/accounts/doctype/fiscal_year/fiscal_year.txt +++ b/accounts/doctype/fiscal_year/fiscal_year.txt @@ -2,7 +2,7 @@ { "creation": "2013-01-22 16:50:25", "docstatus": 0, - "modified": "2013-07-05 14:38:22", + "modified": "2013-07-23 11:59:11", "modified_by": "Administrator", "owner": "Administrator" }, @@ -24,19 +24,13 @@ "permlevel": 0 }, { - "cancel": 1, - "create": 1, "doctype": "DocPerm", "name": "__common__", "parent": "Fiscal Year", "parentfield": "permissions", "parenttype": "DocType", "permlevel": 0, - "read": 1, - "report": 1, - "role": "System Manager", - "submit": 0, - "write": 1 + "read": 1 }, { "doctype": "DocType", @@ -76,6 +70,16 @@ "reqd": 0 }, { - "doctype": "DocPerm" + "cancel": 1, + "create": 1, + "doctype": "DocPerm", + "report": 1, + "role": "System Manager", + "submit": 0, + "write": 1 + }, + { + "doctype": "DocPerm", + "role": "All" } ] \ No newline at end of file diff --git a/setup/doctype/brand/brand.txt b/setup/doctype/brand/brand.txt index 633e8aa1b4..1fd9cec210 100644 --- a/setup/doctype/brand/brand.txt +++ b/setup/doctype/brand/brand.txt @@ -2,7 +2,7 @@ { "creation": "2013-02-22 01:27:54", "docstatus": 0, - "modified": "2013-07-05 14:28:33", + "modified": "2013-07-23 12:06:41", "modified_by": "Administrator", "owner": "Administrator" }, @@ -71,5 +71,17 @@ "role": "Material User", "submit": 0, "write": 0 + }, + { + "doctype": "DocPerm", + "role": "Sales User" + }, + { + "doctype": "DocPerm", + "role": "Purchase User" + }, + { + "doctype": "DocPerm", + "role": "Accounts User" } ] \ No newline at end of file diff --git a/setup/doctype/company/company.txt b/setup/doctype/company/company.txt index 134af2cf83..6ca3668075 100644 --- a/setup/doctype/company/company.txt +++ b/setup/doctype/company/company.txt @@ -2,7 +2,7 @@ { "creation": "2013-04-10 08:35:39", "docstatus": 0, - "modified": "2013-07-10 18:17:55", + "modified": "2013-07-23 11:58:36", "modified_by": "Administrator", "owner": "Administrator" }, @@ -25,20 +25,13 @@ "permlevel": 0 }, { - "amend": 0, - "cancel": 1, - "create": 1, "doctype": "DocPerm", "name": "__common__", "parent": "Company", "parentfield": "permissions", "parenttype": "DocType", "permlevel": 0, - "read": 1, - "report": 1, - "role": "System Manager", - "submit": 0, - "write": 1 + "read": 1 }, { "doctype": "DocType", @@ -380,6 +373,17 @@ "read_only": 1 }, { - "doctype": "DocPerm" + "amend": 0, + "cancel": 1, + "create": 1, + "doctype": "DocPerm", + "report": 1, + "role": "System Manager", + "submit": 0, + "write": 1 + }, + { + "doctype": "DocPerm", + "role": "All" } ] \ No newline at end of file diff --git a/setup/doctype/country/country.txt b/setup/doctype/country/country.txt index ee54dcf072..8b811a3342 100644 --- a/setup/doctype/country/country.txt +++ b/setup/doctype/country/country.txt @@ -2,7 +2,7 @@ { "creation": "2013-01-19 10:23:30", "docstatus": 0, - "modified": "2013-07-05 14:33:19", + "modified": "2013-07-23 12:05:08", "modified_by": "Administrator", "owner": "Administrator" }, @@ -25,7 +25,6 @@ "permlevel": 0 }, { - "create": 1, "doctype": "DocPerm", "name": "__common__", "parent": "Country", @@ -33,9 +32,7 @@ "parenttype": "DocType", "permlevel": 0, "read": 1, - "report": 1, - "submit": 0, - "write": 1 + "report": 1 }, { "doctype": "DocType", @@ -65,19 +62,35 @@ { "amend": 0, "cancel": 0, + "create": 1, "doctype": "DocPerm", - "role": "Sales Master Manager" + "role": "Sales Master Manager", + "submit": 0, + "write": 1 + }, + { + "create": 1, + "doctype": "DocPerm", + "role": "Purchase Master Manager", + "submit": 0, + "write": 1 + }, + { + "create": 1, + "doctype": "DocPerm", + "role": "HR User", + "submit": 0, + "write": 1 + }, + { + "create": 1, + "doctype": "DocPerm", + "role": "HR Manager", + "submit": 0, + "write": 1 }, { "doctype": "DocPerm", - "role": "Purchase Master Manager" - }, - { - "doctype": "DocPerm", - "role": "HR User" - }, - { - "doctype": "DocPerm", - "role": "HR Manager" + "role": "All" } ] \ No newline at end of file diff --git a/setup/doctype/currency/currency.txt b/setup/doctype/currency/currency.txt index 2954c9f9e4..7476ccf435 100644 --- a/setup/doctype/currency/currency.txt +++ b/setup/doctype/currency/currency.txt @@ -2,7 +2,7 @@ { "creation": "2013-01-28 10:06:02", "docstatus": 0, - "modified": "2013-07-05 14:33:39", + "modified": "2013-07-23 12:05:26", "modified_by": "Administrator", "owner": "Administrator" }, @@ -25,7 +25,6 @@ "permlevel": 0 }, { - "create": 1, "doctype": "DocPerm", "name": "__common__", "parent": "Currency", @@ -33,9 +32,7 @@ "parenttype": "DocType", "permlevel": 0, "read": 1, - "report": 1, - "submit": 0, - "write": 1 + "report": 1 }, { "doctype": "DocType", @@ -92,19 +89,32 @@ }, { "cancel": 1, + "create": 1, "doctype": "DocPerm", - "role": "Accounts Manager" + "role": "Accounts Manager", + "submit": 0, + "write": 1 }, { "amend": 0, "cancel": 1, + "create": 1, "doctype": "DocPerm", - "role": "Sales Master Manager" + "role": "Sales Master Manager", + "submit": 0, + "write": 1 }, { "amend": 0, "cancel": 0, + "create": 1, "doctype": "DocPerm", - "role": "Purchase Master Manager" + "role": "Purchase Master Manager", + "submit": 0, + "write": 1 + }, + { + "doctype": "DocPerm", + "role": "All" } ] \ No newline at end of file diff --git a/setup/doctype/item_group/item_group.txt b/setup/doctype/item_group/item_group.txt index 44faa49070..6e7edf952b 100644 --- a/setup/doctype/item_group/item_group.txt +++ b/setup/doctype/item_group/item_group.txt @@ -2,7 +2,7 @@ { "creation": "2013-03-28 10:35:29", "docstatus": 0, - "modified": "2013-07-22 15:29:54", + "modified": "2013-07-23 12:00:14", "modified_by": "Administrator", "owner": "Administrator" }, @@ -37,8 +37,7 @@ "parenttype": "DocType", "permlevel": 0, "read": 1, - "report": 1, - "submit": 0 + "report": 1 }, { "doctype": "DocType", @@ -180,6 +179,7 @@ "create": 0, "doctype": "DocPerm", "role": "Material Manager", + "submit": 0, "write": 0 }, { @@ -188,6 +188,7 @@ "create": 0, "doctype": "DocPerm", "role": "Material User", + "submit": 0, "write": 0 }, { @@ -195,6 +196,19 @@ "create": 1, "doctype": "DocPerm", "role": "Material Master Manager", + "submit": 0, "write": 1 + }, + { + "doctype": "DocPerm", + "role": "Sales User" + }, + { + "doctype": "DocPerm", + "role": "Purchase User" + }, + { + "doctype": "DocPerm", + "role": "Accounts User" } ] \ No newline at end of file diff --git a/setup/doctype/price_list/price_list.txt b/setup/doctype/price_list/price_list.txt index 769e3d0d7f..1af2e1ba80 100644 --- a/setup/doctype/price_list/price_list.txt +++ b/setup/doctype/price_list/price_list.txt @@ -2,7 +2,7 @@ { "creation": "2013-01-25 11:35:09", "docstatus": 0, - "modified": "2013-07-05 14:50:47", + "modified": "2013-07-23 12:03:25", "modified_by": "Administrator", "owner": "Administrator" }, @@ -29,7 +29,6 @@ "permlevel": 0 }, { - "amend": 0, "doctype": "DocPerm", "name": "__common__", "parent": "Price List", @@ -37,8 +36,7 @@ "parenttype": "DocType", "permlevel": 0, "read": 1, - "report": 1, - "submit": 0 + "report": 1 }, { "doctype": "DocType", @@ -118,24 +116,32 @@ "options": "
Use the Data Import Tool to upload, update Item Prices in bulk:\n
    \n
  1. Go to Data Import Tool.\n
  2. Select \"Item\"\n
  3. Check on \"With Data\"\n
  4. Download \"Item Price\" from Child Tables.\n
  5. Update the prices required and add new rows if required.\n
  6. Check on \"Overwrite\"\n
  7. Upload the modified sheet.\n
\n" }, { - "cancel": 0, - "create": 0, - "doctype": "DocPerm", - "role": "Sales Manager", - "write": 0 - }, - { + "amend": 0, "cancel": 0, "create": 0, "doctype": "DocPerm", "role": "Sales User", + "submit": 0, "write": 0 }, + { + "amend": 0, + "cancel": 1, + "create": 1, + "doctype": "DocPerm", + "role": "Sales Master Manager", + "submit": 0, + "write": 1 + }, + { + "doctype": "DocPerm", + "role": "Purchase User" + }, { "cancel": 1, "create": 1, "doctype": "DocPerm", - "role": "Sales Master Manager", + "role": "Purchase Master Manager", "write": 1 } ] \ No newline at end of file diff --git a/setup/doctype/uom/uom.txt b/setup/doctype/uom/uom.txt index ac15095d19..0837558415 100644 --- a/setup/doctype/uom/uom.txt +++ b/setup/doctype/uom/uom.txt @@ -2,7 +2,7 @@ { "creation": "2013-01-10 16:34:24", "docstatus": 0, - "modified": "2013-07-05 15:02:01", + "modified": "2013-07-23 12:03:54", "modified_by": "Administrator", "owner": "Administrator" }, @@ -23,7 +23,6 @@ "permlevel": 0 }, { - "amend": 0, "doctype": "DocPerm", "name": "__common__", "parent": "UOM", @@ -31,8 +30,7 @@ "parenttype": "DocType", "permlevel": 0, "read": 1, - "report": 1, - "submit": 0 + "report": 1 }, { "doctype": "DocType", @@ -64,24 +62,34 @@ "reqd": 1 }, { + "amend": 0, "cancel": 1, "create": 1, "doctype": "DocPerm", "role": "Material Master Manager", + "submit": 0, "write": 1 }, { + "amend": 0, "cancel": 0, "create": 0, "doctype": "DocPerm", "role": "Material Manager", + "submit": 0, "write": 0 }, { + "amend": 0, "cancel": 0, "create": 0, "doctype": "DocPerm", "role": "Material User", + "submit": 0, "write": 0 + }, + { + "doctype": "DocPerm", + "role": "All" } ] \ No newline at end of file diff --git a/stock/doctype/warehouse/warehouse.txt b/stock/doctype/warehouse/warehouse.txt index f6d3bcc3e5..631b968d90 100644 --- a/stock/doctype/warehouse/warehouse.txt +++ b/stock/doctype/warehouse/warehouse.txt @@ -2,7 +2,7 @@ { "creation": "2013-03-07 18:50:32", "docstatus": 0, - "modified": "2013-07-22 15:20:35", + "modified": "2013-07-23 12:01:16", "modified_by": "Administrator", "owner": "Administrator" }, @@ -24,7 +24,6 @@ "read_only": 0 }, { - "amend": 0, "doctype": "DocPerm", "name": "__common__", "parent": "Warehouse", @@ -32,8 +31,7 @@ "parenttype": "DocType", "permlevel": 0, "read": 1, - "report": 1, - "submit": 0 + "report": 1 }, { "doctype": "DocType", @@ -203,17 +201,33 @@ "permlevel": 2 }, { + "amend": 0, "cancel": 1, "create": 1, "doctype": "DocPerm", "role": "Material Master Manager", + "submit": 0, "write": 1 }, { + "amend": 0, "cancel": 0, "create": 0, "doctype": "DocPerm", "role": "Material User", + "submit": 0, "write": 0 + }, + { + "doctype": "DocPerm", + "role": "Sales User" + }, + { + "doctype": "DocPerm", + "role": "Purchase User" + }, + { + "doctype": "DocPerm", + "role": "Accounts User" } ] \ No newline at end of file