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

I have a custom "Orders" model with a tree view, and this tree view is frequently grouped by product ID, which is a many-to-one field. I want the average quantity ordered of the group to be displayed in the Group-By header. However, it is currently displaying the sum of quantities ordered, which is not what I want. I am using Odoo Online, so I don't have direct access to the backend. 

I have a feeling this is related to "group_operator," but I don't know of a way to edit that with Odoo Studio. I've tried using the Aggregate option in Odoo Studio, but that just displays the average of every quantity ordered at the bottom of the tree. I'm at a loss for what to try next.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

HIi 
In that case you can use  group_operator="avg" in fields attributes after adding that your able to see 
Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มิ.ย. 20
5305
0
ส.ค. 24
224
2
มี.ค. 25
1239
1
ก.พ. 25
1499
1
ธ.ค. 24
2003