- Odoo 11 Development Essentials(Third Edition)
- Daniel Reis
- 213字
- 2021-08-27 19:32:42
Adding to the addons path
To have new modules available for Odoo, we need to make sure the directory containing the module is in the addons path, then update the Odoo module list. Both actions have been explained in detail in the previous chapter, but here we will continue with a brief overview of what is needed.
We will position ourselves in our work directory and start the server with the appropriate addons path configuration:
$ cd ~/odoo-dev $ ./odoo/odoo-bin -d todo --addons-path="custom-addons,odoo/addons" --save
The --save option saves the options you used in a configuration file. This spares us from repeating them every time we restart the server; just run ./odoo-bin and the last saved option will be used. You can specify the configuration file and location to use (and save to) using the -c option.
Look closely at the server log. It should have an INFO ? odoo: addons paths:[...] line. It should include our custom-addons directory.
Remember to also include any other addon directories you might be using. For instance, if you also have a ~/odoo-dev/extra directory containing additional modules to be used, you might want to include them also, using the --addons-path option:
--addons-path="custom-addons,extra,odoo/addons"
Now we need the Odoo instance to acknowledge the new module we just added.
- 完全掌握Office 2010高效辦公超級手冊
- Excel 2013使用詳解
- 新編電腦辦公(Windows 7 + Office 2013版)從入門到精通
- Adobe Premiere Pro 2020基礎培訓教材
- 新編Office 2013從入門到精通
- PPT制作事半功倍
- Excel商務圖表應用與技巧108例
- Excel數據可視化:從圖表到數據大屏
- 巧學巧用Excel函數:掌握核心技能,秒變數據分析高手
- 精通Excel數據統計與分析
- Excel商務數據分析:思維、策略與方法
- AI智能化辦公:ChatGPT使用方法與技巧從入門到精通
- Excel 2010 SQL完全應用
- 移動游戲UI設計專業教程
- 精英演示:PPT的商務演示藝術