Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4185 Lượt xem

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

```

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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!

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 22
5577
1
thg 10 21
3254
2
thg 11 18
10167
4
thg 8 16
5676
4
thg 3 15
5215