跳至内容
菜单
此问题已终结
1 回复
19975 查看

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?

相关帖文 回复 查看 活动
1
9月 23
2883
3
5月 23
5475
7
4月 23
48776
1
12月 22
7678
4
12月 23
26364