2015-03-03 09:25:30 +00:00
|
|
|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
2014-06-06 09:39:26 +00:00
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
2014-11-28 06:15:02 +00:00
|
|
|
from frappe.permissions import reset_perms
|
2014-06-06 09:39:26 +00:00
|
|
|
|
|
|
|
def execute():
|
|
|
|
for doctype in ("About Us Settings", "Accounts Settings", "Activity Type",
|
|
|
|
"Blog Category", "Blog Settings", "Blogger", "Branch", "Brand", "Buying Settings",
|
2016-01-19 13:08:08 +00:00
|
|
|
"Communication", "Company", "Contact Us Settings",
|
2014-06-06 09:39:26 +00:00
|
|
|
"Country", "Currency", "Currency Exchange", "Deduction Type", "Department",
|
2015-09-02 13:04:24 +00:00
|
|
|
"Designation", "Earning Type", "Event", "Feed", "File", "Fiscal Year",
|
2014-09-15 11:29:38 +00:00
|
|
|
"HR Settings", "Industry Type", "Leave Type", "Letter Head",
|
2014-06-06 09:39:26 +00:00
|
|
|
"Mode of Payment", "Module Def", "Naming Series", "POS Setting", "Print Heading",
|
2014-09-15 11:29:38 +00:00
|
|
|
"Report", "Role", "Selling Settings", "Stock Settings", "Supplier Type", "UOM"):
|
2014-06-06 09:39:26 +00:00
|
|
|
try:
|
2014-11-28 06:15:02 +00:00
|
|
|
reset_perms(doctype)
|
2014-06-06 09:39:26 +00:00
|
|
|
except:
|
|
|
|
print "Error resetting perms for", doctype
|
|
|
|
raise
|