Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

269
Vistas
How to allow linter to resolve imports through Odoo's `odoo.addons`?

How do I set up my development environment so my IDE is able to properly resolve imports through odoo.addons?

In some cases in Odoo one may need to import Python objects directly from a file in another custom module. Take a module some_module as an example. In some_module/models/some_model.py there might be an import like so:

from odoo.addons.other_module import some_class

This type of import is done throughout the Odoo source code, and everything is resolved without issues because the built-in Odoo modules are located directly under the odoo/addons directory which has an __init__.py file. However, since my custom modules are in a separate directory, the linter is obviously not able to resolve the imports.

What's the recommended way to deal with this?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

If you use PyCharm, you can use the Odoo plugin to help IDE understand Odoo imports and more!

References:

https://odoo-ide.com

https://plugins.jetbrains.com/plugin/13499-odoo

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda