Ir al contenido
Menú
Se marcó esta pregunta
2795 Vistas

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
Descartar

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

Publicaciones relacionadas Respuestas Vistas Actividad
3
jul 25
2069
3
may 25
3629
2
jun 25
4117
0
jun 21
2396
1
ago 24
3529