Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1664 Widoki

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?

Awatar
Odrzuć

Hello,

You have try if else condition in qweb ?

Powiązane posty Odpowiedzi Widoki Czynność
1
gru 24
4184
0
lis 24
1692
2
lip 24
3503
0
kwi 24
2234
3
mar 24
2699