تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2816 أدوات العرض

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
يوليو 25
2125
3
مايو 25
3718
2
يونيو 25
4191
0
يونيو 21
2423
1
أغسطس 24
3574