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.
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.
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
Thanks
Good !!
Is this possible for qweb view?
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren| Verknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
|---|---|---|---|---|
|
1
Sept. 23
|
5986 | |||
|
3
Mai 23
|
8430 | |||
|
7
Apr. 23
|
52310 | |||
|
Barcode scanner from mobile
Gelöst
|
1
Dez. 22
|
10377 | ||
|
4
Dez. 23
|
29359 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.