- Odoo Development Essentials
- Daniel Reis
- 270字
- 2021-07-23 19:28:09
Adding to the addons path
Now that we have a new module, even if minimal, we want to make it available in Odoo.
For that, we need to make sure the directory the module is in is part of the addons path. And then we need to update the Odoo module list.
Both operations have been explained in detail in the previous chapter, but we will follow here with a brief overview of what is needed.
We will position in our work directory and start the server with the appropriate addons path configuration:
$ cd ~/odoo-dev $ odoo/odoo.py -d v8dev --addons-path="custom-addons,odoo/addons" --save
The --save
option saves the options you used in a config file. This spares you from repeating them the next time you restart the server: just run ./odoo.py
and the last saved options will be used.
Look closely at the server log. It should have an INFO ? openerp: addons paths: (...) line, and it should include our custom-addons
directory.
Remember to also include any other addons directories you might be using. For instance, if you followed the last chapter's instructions to install the department repository, you might want to include it and use the option:
--addons-path="custom-addons,department,odoo/addons"
Now let's ask Odoo to acknowledge the new module we just added.
For that, in the Modules section of the Settings menu, select the Update Modules List option. This will update the module list adding any modules added since the last update to the list. Remember that we need the Technical Features enabled for this option to be visible. That is done by selecting the Technical Features checkbox for our user.
- 數據庫程序員面試筆試真題與解析
- Java高手真經(高級編程卷):Java Web高級開發技術
- PHP+MySQL網站開發技術項目式教程(第2版)
- Apache Spark Graph Processing
- 精通Scrapy網絡爬蟲
- INSTANT Passbook App Development for iOS How-to
- Learning OpenCV 3 Computer Vision with Python(Second Edition)
- 速學Python:程序設計從入門到進階
- QGIS Python Programming Cookbook(Second Edition)
- HoloLens與混合現實開發
- PrimeFaces Blueprints
- 軟件體系結構
- Cocos2d-x by Example:Beginner's Guide(Second Edition)
- BeagleBone Robotic Projects(Second Edition)
- Java 9 with JShell