Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2800 Prikazi

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
Opusti

full path or search in module directories and load ?

Avtor

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

Related Posts Odgovori Prikazi Aktivnost
3
jul. 25
2081
3
maj 25
3650
2
jun. 25
4134
0
jun. 21
2401
1
avg. 24
3547