콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1738 화면

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

아바타
취소
관련 게시물 답글 화면 활동
2
6월 20
5385
0
8월 24
224
2
8월 25
83
2
3월 25
1288
1
2월 25
1585