Hello
following the steps in "ODOO 15 DEVELOPMENT ESSENTIALS FIFTH EDITION" I’m trying to add a custom addons folder using a terminal on Ubuntu (wsl), when I run this command:
$ odoo -d 15-library --addons-path="./library,./odoo/addons"
I get this error:
Usage: odoo [options]
odoo: error: option –addons-path: the path ‘./library’ is not a valid
addons directory
btw folder library exists in my path
thanks in advance for any help
2
Answers
It is solved by running scaffold command in the directory before running the command in the question 😁.
Odoo will call the _check_addons_path function when you pass
--addons-path
in command line and check if all folders are valid addons paths./library
folder should contain at least one module, a directory with__init__.py
file, and a manifestfile (
__manifest__.py
or_openerp__.py
)