Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1693 Prikazi

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
Opusti

Hello,

You have try if else condition in qweb ?

Related Posts Odgovori Prikazi Aktivnost
1
dec. 24
4235
0
nov. 24
1711
2
jul. 24
3534
0
apr. 24
2258
3
mar. 24
2979