Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2787 Tampilan

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
Buang

full path or search in module directories and load ?

Penulis

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

Post Terkait Replies Tampilan Aktivitas
3
Jul 25
2061
3
Mei 25
3616
2
Jun 25
4108
0
Jun 21
2389
1
Agu 24
3511