Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2815 Widoki

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

Awatar
Odrzuć

full path or search in module directories and load ?

Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
3
lip 25
2125
3
maj 25
3717
2
cze 25
4191
0
cze 21
2423
1
sie 24
3573