콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4493 화면

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
3936
1
5월 20
7389
0
5월 20
4712
1
7월 25
1789
1
5월 25
1883