Skip to Content
Menu
This question has been flagged
2801 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
2081
3
máj 25
3651
2
jún 25
4136
0
jún 21
2402
1
aug 24
3547