Skip to Content
Menú
This question has been flagged
1656 Vistes

I have this in my qweb report

 <span t-esc="formatLang(get_routing_data(o)[-1]['total'] , digits=3)"/>

it works ok, but sometimes it returns an empty list and then i get error index tuple out of range. how can i avoid it?

Avatar
Descartar

Hello,

You have try if else condition in qweb ?

Related Posts Respostes Vistes Activitat
1
de des. 24
4086
0
de nov. 24
1670
2
de jul. 24
3417
0
d’abr. 24
2201
3
de març 24
2359