Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4192 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 22
5584
1
ต.ค. 21
3258
2
พ.ย. 18
10169
4
ส.ค. 16
5685
4
มี.ค. 15
5215