官术网_书友最值得收藏!

Configuring the addons path

The Odoo server has a configuration option called addons_path to set where the server should look for modules. By default, this points to the /addons directory, where the Odoo server is running. We can provide not only one, but a list of directories where modules can be found. This allows us to keep our custom modules in a different directory, without having them mixed with the official addons.

Let's start the server with an addons path that includes our new module directory:

$ cd ~/odoo-dev/odoo
$ ./odoo-bin -d testdb --addons-path="../todo_app,./addons"

If you look closer at the server log, you will notice a line reporting the addons path in use: INFO ? odoo: addons paths: [...]. Confirm that it contains our todo_app directory.

主站蜘蛛池模板: 马边| 藁城市| 塔河县| 宾川县| 渭南市| 措勤县| 凤翔县| 平顶山市| 云梦县| 新干县| 鄂托克前旗| 中牟县| 依兰县| 乌拉特前旗| 壤塘县| 庐江县| 乌鲁木齐市| 通州市| 庆城县| 长丰县| 南通市| 成武县| 青河县| 吉林市| 南溪县| 伊金霍洛旗| 红安县| 昆明市| 南皮县| 蕲春县| 洛隆县| 静乐县| 外汇| 建宁县| 东阿县| 开江县| 长沙市| 湄潭县| 河北区| 中阳县| 康平县|