Skip to Content
Menu
This question has been flagged
1 Atsakyti
5537 Rodiniai

{'All': [{'product': 'apple', 'stock_quant': 2, 'on_hand_quant': 2, 'sales_count': 0}]}

here i want to display "All" key from the above result

Portretas
Atmesti
Best Answer

Hi,

Please try like below code.

< t t-set="all_vals" t-value="vals['All']" />
 < t t-foreach="all_vals" t-as="doc">
     < span t-esc="doc['product']"/>
     < br/>
     < span t-esc="doc['stock_quant']"/>
     < br/>
     < span t-esc="doc['on_hand_quant']"/>
     < br/>
     < span t-esc="doc['sales_count']"/>
 < /t>
Here consider vals as your dictionary.

Regards

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugs. 24
2310
1
geg. 23
2944
1
rugp. 23
3672
2
saus. 23
12015
1
rugp. 22
3558