コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2828 ビュー

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
2143
3
5月 25
3737
2
6月 25
4213
0
6月 21
2441
1
8月 24
3591