Skip to Content
मेन्यू
This question has been flagged
1 Reply
4426 Views

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. 


Avatar
Discard
Best Answer

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?

Avatar
Discard
Related Posts Replies Views Activity
0
मार्च 21
3887
1
मई 20
7320
0
मई 20
4663
1
जुल॰ 25
1710
1
मई 25
1702