Skip to Content
Menu
This question has been flagged

For creating a dict, i used the following code:

<t t-set="count" t-value="dict()"/>

<t t-foreach="count_obj" t-as="ob">

<t t-set="count" t-esc="count.update({ob.id: ob.name})"/>

</t>


But i am getting  a none value.Why?
Can anyone help me?Thanks in advance..
Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
sep 20
9042
7
apr 23
28577
0
okt 21
2203
1
jan 24
1919
1
jún 23
4464