Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2819 Visualizzazioni

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
Abbandona

full path or search in module directories and load ?

Autore

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

Post correlati Risposte Visualizzazioni Attività
3
lug 25
2127
3
mag 25
3720
2
giu 25
4196
0
giu 21
2427
1
ago 24
3579