Skip to Content
Menú
This question has been flagged
2 Respostes
2236 Vistes

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
Best Answer

you can see in filters >>archived section

Avatar
Descartar
Best Answer

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
Related Posts Respostes Vistes Activitat
2
de set. 24
2331
0
de nov. 23
2105
1
d’oct. 20
6808
0
de des. 23
1159
1
de jul. 23
3410