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

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
2124
3
5月 25
3713
2
6月 25
4187
0
6月 21
2421
1
8月 24
3572