Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4205 Tampilan

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

```

Avatar
Buang
Jawaban Terbai

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!

Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
1
Nov 22
5586
1
Okt 21
3261
2
Nov 18
10170
4
Agu 16
5695
4
Mar 15
5216