跳至內容
選單
此問題已被標幟
6423 瀏覽次數

Hi guys!


In the __manifest__.py there is a section to define dependencies:

https://www.odoo.com/documentation/13.0/reference/module.html

depends (list(str))

Odoo modules which must be loaded before this one, either because this module uses features they create or because it alters resources they define.

When a module is installed, all of its dependencies are installed before it. Likewise dependencies are loaded before a module is loaded.


I have a module that needs to be installed after some other modules, but only if they are present, and not fail if they are not.

This is some kind of optional dependency: If the optional modules specified in the list are present, then Odoo would take them as dependencies and therefore install them first ; if they are not then no big deal, the module would continue with using the depends list.


Is there such a feature in Odoo?


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
4月 22
3935
2
1月 24
1860
1
5月 24
2544
1
8月 23
3444
5
10月 17
3501