Pular para o conteúdo
Menu
Esta pergunta foi sinalizada

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
set. 20
8901
7
abr. 23
28322
0
out. 21
2136
1
jan. 24
1815
1
jun. 23
4248