Changes in Permission Manager to exclude doctype of 'Core' module and mark Profile as not in create
diff --git a/erpnext/patches/profile_mark_not_in_create.py b/erpnext/patches/profile_mark_not_in_create.py
new file mode 100644
index 0000000..8d25047
--- /dev/null
+++ b/erpnext/patches/profile_mark_not_in_create.py
@@ -0,0 +1,10 @@
+import webnotes
+def execute():
+ """
+ Mark DocType Profile as 'not_in_create'
+ """
+ webnotes.conn.sql("""
+ UPDATE `tabDocType`
+ SET in_create=1
+ WHERE name='Profile'
+ """)
diff --git a/erpnext/setup/doctype/permission_control/permission_control.py b/erpnext/setup/doctype/permission_control/permission_control.py
index a24c756..044dff5 100644
--- a/erpnext/setup/doctype/permission_control/permission_control.py
+++ b/erpnext/setup/doctype/permission_control/permission_control.py
@@ -30,7 +30,7 @@
WHERE ifnull(docstatus,0)=0
AND ifnull(istable,0)=0
AND ifnull(issingle,0)=0
- AND `module` NOT IN ('System','Utilities','Setup Masters','Roles','Recycle Bin','Mapper','Application Internal','Development')
+ AND `module` NOT IN ('System','Utilities','Setup Masters','Roles','Recycle Bin','Mapper','Application Internal','Development', 'Core')
ORDER BY `name` ASC""")
rl = [''] + [a[0] for a in sql("select name from tabRole where ifnull(docstatus,0)=0")]