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

Hello All,

How i can see count of group by customers in Odoo 10.

I'm also attaching screenshot of my problem.

PFA


形象
丢弃
最佳答案

Hello,

there is no standard way for that, I guess.

I would do that in the following way (programatically):

  1. Add a new int field, which is default is '1' and it is readonly

  2. Add this as a column in tree view with sum = Total

Although, it would be shown as a separate column, it would do what you seek for

形象
丢弃
最佳答案

Kindly use the search_count method:

self.env['res.partner'].search_count([('customer', '=', True)])

I hope that answers your question.

形象
丢弃
编写者

But, how to show count of group_by customer in this screen?

I don't think you can have the total this way, but you can add a custom field after email then you do the total, another way you can see the total count is by removing the "Display Name Group" and enable the "Is a customer" group, that will show you the count as "true (12)"

最佳答案

By using Group by Customer  (from add customer group) 



形象
丢弃
编写者

This was i done already, but how to show count of group_by customer in this screen?

相关帖文 回复 查看 活动
0
8月 22
2433
1
7月 22
20155
0
4月 22
3096
3
9月 21
3261
2
9月 21
4588