Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
19862 Vizualizări

How to get the count of records based on a certain criteria.If i need to get the number of recordsets having particular value in its field.


example-If i need to get number of records having a particular name in its name field.

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

To get the number of records satisfying the given criteria you can the search_count.

total_len = self.env['model_name'].search_count([('document_type', '=', 'entry')])

Thanks

Imagine profil
Abandonează
Autor

Thanks

Is this possible for qweb view?

Related Posts Răspunsuri Vizualizări Activitate
1
sept. 23
2730
3
mai 23
5384
7
apr. 23
48665
1
dec. 22
7569
4
dec. 23
26230