Is there a way to print key and value from a python dictionary in loop Qweb?
For example, if I have a dictionary:
My Code:
<select>
<t t-foreach="[ {key:'1', value:'One'}, {key:'2', value:'Two'}]" t-as="j">
<option t-attf-value="j.key"><t t-esc="j.value"/></option>
</t></select>
If i exceute this j.value dict error.
How to print key and value ?