<span t-field="abs(line.final_balance)"/>
i Try this code but it's not run.
i want to show only positive value any solution please
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- プロジェクト
- MRP
この質問にフラグが付けられました
4
返信
8784
ビュー
Then try with Math.abs(value),
Normally abs works fine,
eg: <span t-esc="abs(value)" />
Thank you @ Niyas Raphy.
+1
| 関連投稿 | 返信 | ビュー | 活動 | |
|---|---|---|---|---|
|
|
3
6月 20
|
10296 | ||
|
|
1
3月 25
|
2718 | ||
|
|
0
11月 24
|
2561 | ||
|
|
0
6月 24
|
2267 | ||
|
|
1
6月 24
|
2863 |
<span t-field="Math.abs(line.final_balance)"/>
but it can't
Thanks Niyas Rafhy...
it's working fine i change ...
<span t-field="Math.abs(line.final_balance)"/>
to
<span t-esc="abs(line.final_balance)"/>