Se rendre au contenu
Menu
Cette question a été signalée
1714 Vues

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
Ignorer

Hello,

You have try if else condition in qweb ?

Publications associées Réponses Vues Activité
1
déc. 24
4383
0
nov. 24
1800
2
juil. 24
3665
0
avr. 24
2346
3
mars 24
3398