<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
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
4
Replies
8606
Tampilan
Then try with Math.abs(value),
Normally abs works fine,
eg: <span t-esc="abs(value)" />
Thank you @ Niyas Raphy.
+1
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
3
Jun 20
|
10083 | ||
|
Enable Counters in odoo what is the use of it
Diselesaikan
|
|
1
Mar 25
|
2400 | |
|
|
0
Nov 24
|
2227 | ||
|
|
0
Jun 24
|
2065 | ||
|
|
1
Jun 24
|
2644 |
<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)"/>