コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4593 ビュー

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
3364
0
10月 15
4154
0
7月 25
353
2
6月 25
472
1
5月 25
705