Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2802 Vizualizări

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

Imagine profil
Abandonează

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 Răspunsuri Vizualizări Activitate
3
iul. 25
2095
3
mai 25
3664
2
iun. 25
4149
0
iun. 21
2407
1
aug. 24
3555