Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4592 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

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

Autore

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

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
nov 17
3364
0
ott 15
4154
0
lug 25
353
2
giu 25
470
1
mag 25
704