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

I have a report and here is what I want to do. [![Odoo Report][1]][1]



  [1]: https://i.stack.imgur.com/DeLjg.png




This is from the stock-picking batch model.  


I was able to add a span line so 


    <span t-esc="move_operation.mapped('picking_id').display_name"/>


This gives me the names of the products but I need to be able to add the lines. 


I have tried 


    <t t-esc="sum(l.price_total for l in move_operation.mapped('picking_id') " />



But haven't had success. 


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Have you tried to set a qweb variable and use the t-foreach to sum the price and then t-esc the the qweb variable?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 21
3931
Static table in qweb report? แก้ไขแล้ว
1
พ.ค. 20
7382
0
พ.ค. 20
4711
1
ก.ค. 25
1782
1
พ.ค. 25
1867