İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
4582 Görünümler

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

Avatar
Vazgeç
En İyi Yanı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.

Avatar
Vazgeç
Üretici

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

Üretici

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

En İyi Yanı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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Kas 17
3359
0
Eki 15
4151
0
Tem 25
321
2
Haz 25
459
1
May 25
698