Hi,
Can anyone explain how we can add a module dependency by code. Foe example i have a module 'test_module', now it have only one dependency 'base_setup'. After install this module i need to add a depend module 'sale_management' to my module (in some action). Also it should follow the basic dependency feature, ie when i uninstall the 'sale_management' my 'test_module' also need to get uninstalled.
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
You should add in the __manifest__.py file
depends:['base_setup','sale_management'],
Thanks
Please read the question carefully i need to add the dependency by code, not from manifest, after the installation of module.
you should add module dependency in the manifest file (__menifest__.py).
depends: ['base_setup', 'sale_management']
ref: https://www.odoo.com/documentation/13.0/reference/module.html
Please read the question carefully i need to add the dependency by code, not from manifest, after the installation of module.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
sept 20
|
4450 | ||
|
0
jul 20
|
4608 | ||
|
0
nov 23
|
1724 | ||
|
1
jul 23
|
1944 | ||
|
1
jun 23
|
5984 |