Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

264
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda