Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4499 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
1
nov 22
6375
1
ott 21
3664
2
nov 18
10487
4
ago 16
6041
4
mar 15
5576