{'All': [{'product': 'apple', 'stock_quant': 2, 'on_hand_quant': 2, 'sales_count': 0}]}
here i want to display "All" key from the above result
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
{'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
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
1
set 24
|
1639 | ||
|
1
mag 23
|
2347 | ||
|
1
ago 23
|
3161 | ||
|
2
gen 23
|
11340 | ||
|
1
ago 22
|
2987 |