Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1662 Zobrazení

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
Zrušit

Hello,

You have try if else condition in qweb ?

Related Posts Odpovědi Zobrazení Aktivita
1
pro 24
4181
0
lis 24
1692
2
čvc 24
3500
0
dub 24
2232
3
bře 24
2675