Version 6.x.x Source

Table Name: tabModule Def

Fields

Sr Fieldname Type Label Options
1 module_name Data Module Name
2 app_name Data App Name

Controller

frappe.core.doctype.module_def.module_def

Class ModuleDef

Inherits from frappe.model.document.Document

add_to_modules_txt (self)

Adds to [app]/modules.txt


create_modules_folder (self)

Creates a folder [app]/[module] and adds __init__.py


on_update (self)

If in developer_mode, create folder for module and add in modules.txt of app if missing.



Linked In: