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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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?
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
1
set 23
|
4050 | |||
|
3
mag 23
|
6614 | |||
|
7
apr 23
|
50134 | |||
|
Barcode scanner from mobile
Risolto
|
1
dic 22
|
8686 | ||
|
4
dic 23
|
27746 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.