Ir al contenido
Menú
Se marcó esta pregunta

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
Publicaciones relacionadas Respuestas Vistas Actividad
2
sept 20
8886
7
abr 23
28294
0
oct 21
2128
1
ene 24
1794
1
jun 23
4221