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
Discard
Related Posts Replies Views Activity
2
Sep 20
8879
7
Apr 23
28287
0
Oct 21
2123
1
Jan 24
1791
1
Jun 23
4210