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

How to How to implement abstract model  in odoo 12 and what are the uses  of abstract model.

please explain with an example


thanks in advance

الصورة الرمزية
إهمال
أفضل إجابة

Hello,

Abstract is a generic model that implements some feature that can then be inherited by regular models in order to make that feature available in them.
So if you want to test abstract model you need to inherit this inside regular model(models.model).
For reference you can look for mail.thread inherit into sale.order. and based on that you can use/call method of the
mail.thread object.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 22
8236
2
نوفمبر 16
3654
3
فبراير 20
9993
3
ديسمبر 19
6049
1
نوفمبر 24
1642