<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
- Project
- MRP
この質問にフラグが付けられました
4
返信
8302
ビュー
Then try with Math.abs(value),
Normally abs works fine,
eg: <span t-esc="abs(value)" />
Thank you @ Niyas Raphy.
+1
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
3
6月 20
|
9719 | ||
|
1
3月 25
|
1416 | ||
|
0
11月 24
|
1592 | ||
|
0
6月 24
|
1629 | ||
|
1
6月 24
|
2145 |
<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)"/>