- Odoo Development Cookbook
- Holger Brunn Alexandre Fayolle Daniel Reis
- 280字
- 2021-07-16 11:00:30
Updating the addon modules list
As we said in the previous recipe, when you add a directory to the addons path, just restarting the Odoo server is not enough to be able to install one of the new addon modules. A specific action is required for Odoo to scan the addons path and update the list of available addon modules.
Getting ready
Start your instance, and connect to the instance using the Administrator account and activate the developer mode (see Chapter 1, Installing the Odoo Development Environment).
How to do it…
To update the list of available addon modules in your instance, you need to perform the following steps:
- Open the Apps menu:
- Click on Update Apps List:
- In the dialog, click on the Update button.
- At the end of the update, you can click on the first Apps entry to see the updated list of available addon modules. You will need to remove the default filter on Apps in the search box to see all of them.
How it works…
When the Update button is clicked on, Odoo will read the addons path configuration variable, and for each directory in the list, it will look for immediate subdirectories containing an addon manifest file, which is a file named __openerp__.py
, stored in the addon module directory. Odoo reads the manifest expecting to find a Python dictionary. Unless the manifest contains a key installable
set to False
, the addon module metadata is recorded in the database. If the module was already present, the information is updated; otherwise, a new record is created. If a previously available addon module is not found, the record is not deleted from the list.
- Advanced Splunk
- scikit-learn Cookbook
- 劍指Offer(專項突破版):數據結構與算法名企面試題精講
- 算法精粹:經典計算機科學問題的Java實現
- MATLAB 2020 從入門到精通
- HTML5 Mobile Development Cookbook
- Visual C++串口通信技術詳解(第2版)
- Mastering Apache Maven 3
- 速學Python:程序設計從入門到進階
- SQL Server 入門很輕松(微課超值版)
- Java Web開發實例大全(基礎卷) (軟件工程師開發大系)
- Python 3快速入門與實戰
- Java程序設計實用教程(第2版)
- Sitecore Cookbook for Developers
- C++服務器開發精髓