Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
20210 Visninger

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.

Avatar
Kassér
Bedste svar

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

Avatar
Kassér
Forfatter

Thanks

Is this possible for qweb view?

Related Posts Besvarelser Visninger Aktivitet
1
sep. 23
3017
3
maj 23
5630
7
apr. 23
48995
1
dec. 22
7865
4
dec. 23
26531