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

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
2481
3
5月 25
4275
2
6月 25
4788
0
6月 21
2825
1
8月 24
4059