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

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.

主站蜘蛛池模板: 淮阳县| 蓬莱市| 阿城市| 韶关市| 新兴县| 桦南县| 常熟市| 安庆市| 塘沽区| 岑溪市| 庆元县| 通道| 恩施市| 乌拉特前旗| 石河子市| 五莲县| 忻州市| 苗栗县| 临海市| 宜良县| 江孜县| 辛集市| 菏泽市| 双江| 胶州市| 北辰区| 安达市| 聊城市| 安溪县| 六安市| 仪陇县| 偏关县| 宁海县| 鱼台县| 大余县| 禄丰县| 巴塘县| 江津市| 巩义市| 通化县| 厦门市|