İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4812 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 22
7130
1
Eki 21
4025
2
Kas 18
10855
4
Ağu 16
6342
4
Mar 15
5948