Ir al contenido
Menú
Se marcó esta pregunta
1696 Vistas

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 ?

Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 24
4244
0
nov 24
1717
2
jul 24
3540
0
abr 24
2265
3
mar 24
2995