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?
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
How to install odoo 10 in ubuntu 20.04?
Rozwiązane
|
|
1
wrz 23
|
2741 | |
|
3
maj 23
|
5397 | ||
|
7
kwi 23
|
48675 | ||
Barcode scanner from mobile
Rozwiązane
|
|
1
gru 22
|
7576 | |
How to set a domain for a field in XML?
Rozwiązane
|
|
4
gru 23
|
26238 |