Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4746 Lượt xem

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"/

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 17
3469
0
thg 10 15
4257
0
thg 7 25
354
2
thg 6 25
1275
1
thg 5 25
1298