コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4207 ビュー

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

```

アバター
破棄
最善の回答

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!

アバター
破棄
著作者

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

関連投稿 返信 ビュー 活動
1
11月 22
5586
1
10月 21
3261
2
11月 18
10170
4
8月 16
5697
4
3月 15
5216