Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
6 Odgovori
8491 Prikazi

Hello All,

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

I'm also attaching screenshot of my problem.

PFA


Avatar
Opusti
Best Answer

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

Avatar
Opusti
Best Answer

Kindly use the search_count method:

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

I hope that answers your question.

Avatar
Opusti
Avtor

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)"

Best Answer

By using Group by Customer  (from add customer group) 



Avatar
Opusti
Avtor

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

Related Posts Odgovori Prikazi Aktivnost
0
avg. 22
2462
1
jul. 22
20161
0
apr. 22
3106
3
sep. 21
3271
2
sep. 21
4598