コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1715 ビュー

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?

アバター
破棄

Hello,

You have try if else condition in qweb ?

関連投稿 返信 ビュー 活動
1
12月 24
4383
0
11月 24
1800
2
7月 24
3665
0
4月 24
2346
3
3月 24
3398