Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2818 Visualizações

In Odoo one would use a module or inherit a Class as follows:

product = env['product.product']

or

class ResCompany(models.Model):

    _inherit = 'res.company'


is there a possibility of using a module by importing it following python syntax?

e.g. as

from product.product import Product

Avatar
Cancelar

full path or search in module directories and load ?

Autor

as a search in the module directories, so that you load the class from file as a package

Publicações relacionadas Respostas Visualizações Atividade
3
jul. 25
2125
3
mai. 25
3718
2
jun. 25
4192
0
jun. 21
2424
1
ago. 24
3574