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

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.

主站蜘蛛池模板: 昆明市| 于田县| 大同市| 牟定县| 永胜县| 边坝县| 聊城市| 无极县| 古蔺县| 凌海市| 特克斯县| 花莲县| 佛山市| 炎陵县| 清水河县| 南澳县| 黎城县| 雷波县| 安溪县| 仁怀市| 页游| 横峰县| 巴东县| 曲松县| 丰原市| 平湖市| 兴山县| 六盘水市| 龙井市| 乐业县| 富阳市| 抚州市| 马尔康县| 祥云县| 蓝山县| 南昌市| 麻城市| 昌乐县| 京山县| 海宁市| 赤城县|