Search code examples
odooodoo-10

How to check if a module is installed or a model is existed in odoo


I want to inherit a form from another custom module without depends but It need to be check if that module is installed or model is existed before inherit it. I researched many docs but not found any solution regards so pls help me how can I do this


Solution

  • You can know if a module is installed checking the state field in the ir_module_module table.

    I hope this help you!