Skip to Content
Menu
This question has been flagged
2199 Views

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
Discard

full path or search in module directories and load ?

Author

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

Related Posts Replies Views Activity
1
Jul 24
339
3
Jun 24
1253
2
Sep 23
1936
0
Jun 21
1123
1
Aug 24
1858