跳至内容
菜单
此问题已终结
2791 查看

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

形象
丢弃

full path or search in module directories and load ?

编写者

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

相关帖文 回复 查看 活动
3
7月 25
2064
3
5月 25
3622
2
6月 25
4115
0
6月 21
2394
1
8月 24
3518