Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
18758 Vistas

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

Avatar
Descartar
Mejor respuesta

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.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 22
8192
2
nov 16
3610
3
feb 20
9952
3
dic 19
6008
1
nov 24
1609