Skip to Content
Menú
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
Descartar
Related Posts Respostes Vistes Activitat
2
de set. 20
8887
7
d’abr. 23
28295
0
d’oct. 21
2129
1
de gen. 24
1794
1
de juny 23
4224