Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4732 Представления

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
3462
0
окт. 15
4250
0
июл. 25
354
2
июн. 25
1256
1
мая 25
1287