Skip to Content
Menu
This question has been flagged
2989 Zobrazenia

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
Zrušiť

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

Related Posts Replies Zobrazenia Aktivita
3
júl 25
2460
3
máj 25
4243
2
jún 25
4739
0
jún 21
2783
1
aug 24
4004