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

Hello,


I want to get the individual fields in the delivery slip specifically quantity, uom and product. How do I break it down when the code is like this?


<t t-set="aggregated_lines" t-value="o.move_line_ids._get_aggregated_product_quantities()"/>

                                        <t t-call="stock.stock_report_delivery_aggregated_move_lines"/

아바타
취소
베스트 답변

You should check the origin stock.stock_report_delivery_aggregated_move_lines template, there, you will see the fields and know which fields to get.

아바타
취소
작성자

Where can i find it please? I'm using saas

작성자

nevermind, i found by searching in the external identifiers :) thank you!

베스트 답변

Hi, 

    I guess you need to iterate through the one2many in qweb,

Check this https://www.odoo.com/forum/help-1/how-do-you-use-variables-in-a-qweb-loop-67687

Hope it helps.

Thanks

아바타
취소
관련 게시물 답글 화면 활동
0
11월 17
3594
0
10월 15
4368
2
9월 25
312
1
8월 25
371
0
7월 25
354