Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2260 Zobrazení

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
Zrušit
Nejlepší odpověď

you can see in filters >>archived section

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
zář 24
2485
0
lis 23
2181
1
říj 20
6884
0
pro 23
1204
1
čvc 23
3503