Skip to Content
Menu
This question has been flagged
1 Atsakyti
4222 Rodiniai

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

```

Portretas
Atmesti
Best Answer

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!

Portretas
Atmesti
Autorius

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

Related Posts Replies Rodiniai Veikla
1
lapkr. 22
5628
1
spal. 21
3295
2
lapkr. 18
10203
4
rugp. 16
5746
4
kov. 15
5233