{'All': [{'product': 'apple', 'stock_quant': 2, 'on_hand_quant': 2, 'sales_count': 0}]}
here i want to display "All" key from the above result
{'All': [{'product': 'apple', 'stock_quant': 2, 'on_hand_quant': 2, 'sales_count': 0}]}
here i want to display "All" key from the above result
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
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
1
9월 24
|
4592 | |||
|
1
5월 23
|
5200 | |||
|
1
8월 23
|
5994 | |||
|
2
1월 23
|
14481 | |||
|
1
8월 22
|
5376 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.