#478 module fix
This commit is contained in:
parent
ecce41e97b
commit
a38b42d7be
2 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue