Learning Odoo 12: Adding extra modules directory during development
Posted by Fri, Sep 13 2019 12:24:06
on One of the methods used to add an extra modules directory is through the command line which goes something like this in Windows Powershell:
> & 'C:\Program Files (x86)\Odoo 12.0\python\python.exe' "C:\Program Files (x86)\Odoo 12.0\server\odoo-bin" --config "C:\Program Files (x86)\Odoo 12.0\server\odoo.conf" --addons-path='C:\Users\mmahgoub\Desktop\addons'
The problem arises when you don't have any modules inside that directory, the terminal will throw the error "odoo-bin: error: option --addons-path: The addons-path 'C:\\Users\\mmahgoub\\Desktop\\addons' does not seem to a be a valid Addons Directory!" and the odoo instance will fail to run.
This is because there are no valid existing add-ons available to install, as soon as you put a valid add-on which contains __init__.py, __manifest__.py inside specified directory the run command will work as expected.
Posted in Learning Odoo 12
0 Comments
Add new comment