Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2840 Visninger

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
Kassér

full path or search in module directories and load ?

Forfatter

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

Related Posts Besvarelser Visninger Aktivitet
3
jul. 25
2168
3
maj 25
3802
2
jun. 25
4265
0
jun. 21
2473
1
aug. 24
3626