Skip to Content
Menu
This question has been flagged
1717 Rodiniai

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?

Portretas
Atmesti

Hello,

You have try if else condition in qweb ?

Related Posts Replies Rodiniai Veikla
1
gruod. 24
4385
0
lapkr. 24
1802
2
liep. 24
3668
0
bal. 24
2346
3
kov. 24
3402