Skip to Content
Menu
This question has been flagged
3032 Rodiniai

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

Portretas
Atmesti

full path or search in module directories and load ?

Autorius

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

Related Posts Replies Rodiniai Veikla
3
liep. 25
2488
3
geg. 25
4288
2
birž. 25
4800
0
birž. 21
2831
1
rugp. 24
4088