Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2796 Zobrazení

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šit

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 Odpovědi Zobrazení Aktivita
3
čvc 25
2070
3
kvě 25
3630
2
čvn 25
4117
0
čvn 21
2396
1
srp 24
3529