Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2225 Vistas

Hello everyone 🖐🏻 

I am currently working on building a dashboard that is fed by the opportunities hosted in the CRM. I am retrieving the information through the API, obtaining the data from the crm.leads table. However, I was surprised that missed opportunities do not appear in that table. As I found on the internet, it is possible that the information of the lost opportunities is stored in the crm.leads.lost table, but I couldn’t find them in the table file either. 

Can someone help me, indicating how I could find the information of the lost leads?

 I will appreciate your help 🙏

Avatar
Descartar
Mejor respuesta

you can see in filters >>archived section

Avatar
Descartar
Mejor respuesta

Hi,

Please try the below code to get the lost leadsmodel = self.env['crm.lead'].search(
            [('type', '=', 'opportunity'), ('active', '=', False), ('probability', '=', 0)])


Hope it helps

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
sept 24
2260
0
nov 23
2070
1
oct 20
6772
0
dic 23
1138
1
jul 23
3366