Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
6 ตอบกลับ
8468 มุมมอง

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?

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ส.ค. 22
2427
1
ก.ค. 22
20151
0
เม.ย. 22
3092
3
ก.ย. 21
3254
2
ก.ย. 21
4570