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

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:

  1. Open the Apps menu:
    How to do it…
  2. Click on Update Apps List:
    How to do it…
  3. In the dialog, click on the Update button.
  4. 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.

主站蜘蛛池模板: 建瓯市| 遂平县| 吕梁市| 公主岭市| 子长县| 金溪县| 东兰县| 东城区| 库车县| 邹城市| 阿合奇县| 吴桥县| 临邑县| 青海省| 阜阳市| 舞阳县| 新建县| 衢州市| 吉水县| 盖州市| 藁城市| 金华市| 河曲县| 武安市| 宜兰市| 台江县| 崇左市| 盐亭县| 八宿县| 武冈市| 普兰店市| 巴彦淖尔市| 临潭县| 洛阳市| 历史| 甘洛县| 曲松县| 石城县| 尼勒克县| 鹤庆县| 浦东新区|