Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1676 Tampilan

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
Buang

Hello,

You have try if else condition in qweb ?

Post Terkait Replies Tampilan Aktivitas
1
Des 24
4209
0
Nov 24
1700
2
Jul 24
3521
0
Apr 24
2248
3
Mar 24
2875