İçereği Atla
Menü
Bu soru işaretlendi
2668 Görünümler

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
Vazgeç

full path or search in module directories and load ?

Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
3
May 25
3049
1
Tem 24
1608
2
Haz 25
3629
0
Haz 21
2106
1
Ağu 24
3103