A Bash script to quickly generate a scaffold for an Odoo module with the standard folder structure and essential files.
- Creates the necessary folders (
models
,views
,security
). - Generates the
__init__.py
,__manifest__.py
, and essential XML and CSV files. - Includes default content for menus, actions, and model definitions.
sudo mv create_odoo_module.sh /usr/local/bin/create_odoo_module
sudo chmod +x /usr/local/bin/create_odoo_module
Run the script with the following parameters:
create_odoo_module <module_name> <module_path>
The script will generate the following structure:
<module_path>/<module_name>/
├── __init__.py
├── __manifest__.py
├── models/
│ ├── __init__.py
│ └── <module_name>.py
├── views/
│ └── <module_name>.xml
└── security/
└── ir.model.access.csv