Se rendre au contenu
Menu
Cette question a été signalée
2820 Vues

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
Ignorer

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

Publications associées Réponses Vues Activité
3
juil. 25
2129
3
mai 25
3723
2
juin 25
4198
0
juin 21
2427
1
août 24
3580