Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1658 Vizualizări

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?

Imagine profil
Abandonează

Hello,

You have try if else condition in qweb ?

Related Posts Răspunsuri Vizualizări Activitate
1
dec. 24
4126
0
nov. 24
1681
2
iul. 24
3447
0
apr. 24
2211
3
mar. 24
2513