Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2798 Представления

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

Related Posts Ответы Просмотры Активность
3
июл. 25
2074
3
мая 25
3638
2
июн. 25
4122
0
июн. 21
2398
1
авг. 24
3535