To start an Odoo instance, please perform the following steps:
- Pull this repo
- Pull enterprise addons
- Configure the path to enterprise addons
- Run
docker-compose up - Run
chmod 777 -R etcto grant permissions - Restart odoo using
docker-compose restart odoo14(replaceodoo14with the service name) - Happy coding!
If logfile is enabled in odoo.conf, use this command to print the log (adapt the path to log file accordingly)
tail -fn 500 etc/odoo-server.log
To allow VSCode to run inside the container, you need to have Python setup inside the container (after start VSCode in container, go to extension and find Python). After that, you need to setup launch.json as follows
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Odoo",
"type": "python",
"request": "launch",
"stopOnEntry": false,
"python": "/usr/bin/python3",
"program": "/usr/bin/odoo",
"args": [
"--db_host=db",
"--db_port=5432",
"--db_password=odoo",
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
}
]
}
After that, just run the container from the debug menu and happy coding!