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

hello,
is there a way to set group_operator as SUM(DISTINCT column) in reporting :
I have the following view :

```

SELECT   

      sale_id,   

     COUNT( product_id),

    SUM(DISTINCT sale_qty) sale_qty ,

    SUM(delivered_qty) deliveryed_qty

FROM sale_delivery

WHERE sale_id=3063

GROUP BY sale_id

```

아바타
취소
베스트 답변

Salamu alaikum,

You will be obliged to create custom reports.

Start with the documentation part explaining Custom Reports and explore the Source Code of the "Account" module

Wish you all the best!

아바타
취소
작성자

Alaikom salam, I already working in a custom report but in odoo cannot pass group_operation='sum distinct' on the fild sale_qty

관련 게시물 답글 화면 활동
1
11월 22
5840
1
10월 21
3406
2
11월 18
10317
4
8월 16
5828
4
3월 15
5378