Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
20014 Переглядів

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

Is this possible for qweb view?

Related Posts Відповіді Переглядів Дія
1
вер. 23
2890
3
трав. 23
5482
7
квіт. 23
48802
1
груд. 22
7698
4
груд. 23
26376