跳至內容
選單
此問題已被標幟
1 回覆
4468 瀏覽次數

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?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 21
3926
1
5月 20
7374
0
5月 20
4708
1
7月 25
1776
1
5月 25
1858