Odoo / Coding / Controller
New Module
-
Step 1:
1. Create custom module
1. Enable developer mode
2. add custom-addons path in odoo.conf
addons_path = e:\odoo\16\server\odoo\addons, e:\odoo\16\server\addons 3. new module
windows
LinuxE:\odoo\python\python.exe E:\odoo\server\odoo-bin scaffold school E:\odoo\server\addons //restart service go to searchbar -> type services -> restart odoo server Navigate to location of odoo-bin
./odoo-bin scaffold school ../addons/ //restart server sudo systemctl restart odoo14 2. Structure
controllers - __init__.py - controllers.py demo - demo.xml models - __init__.py - models.py security - ir.model.access.csv views - templates.xml - views.xml __init__.py __manifest__.py