Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
19856 Представления

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
2726
3
мая 23
5381
7
апр. 23
48664
1
дек. 22
7561
4
дек. 23
26224