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?
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
How to install odoo 10 in ubuntu 20.04?
Diselesaikan
|
1
Sep 23
|
5278 | ||
|
3
Mei 23
|
7941 | |||
|
7
Apr 23
|
51810 | |||
|
Barcode scanner from mobile
Diselesaikan
|
1
Des 22
|
9988 | ||
|
How to set a domain for a field in XML?
Diselesaikan
|
4
Des 23
|
29121 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.