Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1718 Visualizzazioni

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
Abbandona

Hello,

You have try if else condition in qweb ?

Post correlati Risposte Visualizzazioni Attività
1
dic 24
4385
0
nov 24
1802
2
lug 24
3670
0
apr 24
2347
3
mar 24
3405