<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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
4
回复
8255
查看
Then try with Math.abs(value),
Normally abs works fine,
eg: <span t-esc="abs(value)" />
Thank you @ Niyas Raphy.
+1
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
3
6月 20
|
9642 | ||
|
1
3月 25
|
1342 | ||
|
0
11月 24
|
1525 | ||
|
0
6月 24
|
1565 | ||
|
1
6月 24
|
2075 |
<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)"/>