This commit is contained in:
Rushabh Mehta 2014-04-07 13:02:04 +05:30
parent ecce41e97b
commit a38b42d7be
2 changed files with 2 additions and 1 deletions

View file

@ -334,6 +334,7 @@ def make_module_and_roles(doc, perm_fieldname="permissions"):
try:
if not frappe.db.exists("Module Def", doc.module):
m = frappe.get_doc({"doctype": "Module Def", "module_name": doc.module})
m.app_name = frappe.local.module_app[frappe.scrub(doc.module)]
m.ignore_mandatory = m.ignore_permissions = True
m.insert()

View file

@ -92,7 +92,7 @@
"istable": null,
"max_attachments": null,
"menu_index": null,
"modified": "2014-04-07 12:47:20.781686",
"modified": "2014-04-07 13:00:27.894115",
"modified_by": "Administrator",
"module": "Core",
"name": "Module Def",