Skip to Content
मेन्यू
This question has been flagged
1 Reply
5442 Views

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

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

Avatar
Discard
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

Avatar
Discard
Related Posts Replies Views Activity
1
सित॰ 24
2223
1
मई 23
2870
1
अग॰ 23
3588
2
जन॰ 23
11948
1
अग॰ 22
3472