diff --git a/frappe/core/doctype/doctype/doctype.py b/frappe/core/doctype/doctype/doctype.py index bab96a7707..614183ecee 100644 --- a/frappe/core/doctype/doctype/doctype.py +++ b/frappe/core/doctype/doctype/doctype.py @@ -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() diff --git a/frappe/core/doctype/module_def/module_def.json b/frappe/core/doctype/module_def/module_def.json index e3c3c61935..b046c7057b 100644 --- a/frappe/core/doctype/module_def/module_def.json +++ b/frappe/core/doctype/module_def/module_def.json @@ -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",