Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4494 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
6372
1
Okt 21
3664
2
Nov 18
10486
4
Agu 16
6035
4
Mar 15
5576