Creating a new Odoo module

Tags: #<Tag:0x00007f0f1c3f2e60> #<Tag:0x00007f0f1c3f2d48>

Download odoo-bin file from here , Copy the odoo-bin file to /opt/bahmni-erp/odoo/cli/

Open terminal

Stop Odoo

systemctl stop odoo

cd /opt/bahmni-erp/odoo/cli/

Run this command

python odoo-bin.py scaffold <module_name> <path_for_the_module>

For example

python odoo-bin.py scaffold my_module /opt/bahmni-erp/bahmni-addons/

Start odoo

systemctl start odoo

It will create a new module “my_module” in the given path.

1 Like