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

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 17
3476
0
ต.ค. 15
4261
0
ก.ค. 25
354
2
มิ.ย. 25
1285
1
พ.ค. 25
1311