Reputation: 51
Please let me know how to add a folder(eg:custom_module) to ""./odoo.py --addons=./addons" in odoo9
i am trying to add custom_module to """./odoo.py --addons=./addons". then getting below error
odoo.py: error: option --addons-path: The addons-path './custom_module' does not seem to a be a valid Addons Directory!
Upvotes: 2
Views: 11571
Reputation: 14721
./odoo.py --addons-path=addons,full_path_of_you_new_addons
full path of the directory that contain the module not the path of the module it self like addons in odoo it's a directory contain all module directories
so you folder should be like this :
-new_addons : #full path of this folder
->you_module
->__openerp__.py
->__init__.py
NB: parameter for
./odoo.py -r user_name -w password --db_host=host_adress --addons-path=addons,new_addons,"new_addons",.. --update=module_name,module_name,... --xmlrpc-port=8069
Upvotes: 2
Reputation: 61
to edit the configuration file of the odoo server and locate the line starting with addons_path and appending comma followed by the absolute path to the directory you want to add to the addons path,
so if the custom addons directory is /home/user_name/new-addons
and the path of your odoo instance is /home/user_name/odoo
the line should be like this
addons_path = /home/user_name/odoo/openerp/addons,/home/user_name/odoo/addons,/home/user_name/new-addons
is when calling the odoo.py script and pass the --addons-path command line argument to it like this
$ odoo/odoo.py --addons-path="/home/user_name/odoo/openerp/addons, /home/user_name/odoo/addons, /home/user_name/new-addons"
"does not seem to a be a valid Addons Directory"
errorsee section : Configuring the addons path in the "Odoo Development Cookbook" book
Upvotes: 5