Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
6518 มุมมอง

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?


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Delete dependencies แก้ไขแล้ว
2
เม.ย. 22
3995
2
ม.ค. 24
1925
1
พ.ค. 24
2677
1
ส.ค. 23
3514
5
ต.ค. 17
3560