{'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
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
1
wrz 24
|
3069 | ||
|
|
1
maj 23
|
3661 | ||
|
|
1
sie 23
|
4384 | ||
|
|
2
sty 23
|
12678 | ||
|
|
1
sie 22
|
4159 |