Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2788 Weergaven

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
Annuleer

full path or search in module directories and load ?

Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
3
jul. 25
2062
3
mei 25
3618
2
jun. 25
4111
0
jun. 21
2391
1
aug. 24
3515