跳至內容
選單
此問題已被標幟
2505 瀏覽次數

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
5月 25
2777
1
7月 24
1436
2
2月 25
3333
0
6月 21
1892
1
8月 24
2818