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?
Create an account today to enjoy exclusive features and engage with our awesome community!
Регистрация| Related Posts | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|  | 1 сент. 23  | 3704 | ||
|  | 3 мая 23  | 6294 | ||
|  | 7 апр. 23  | 49666 | ||
| 
            
                Barcode scanner from mobile
            
            
                    Решено
            
         |  | 1 дек. 22  | 8354 | |
|  | 4 дек. 23  | 27322 |