Hi guys
In the Qweb report i want to hide a number if it has a decimal
I tried this t-if="int(l.product_uom_qty)" but it's only working with numbers<1
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi guys
In the Qweb report i want to hide a number if it has a decimal
I tried this t-if="int(l.product_uom_qty)" but it's only working with numbers<1
I actually found the answer
For anyone having the same problem this is the answer : t-if="l.product_uom_qty % 1 == 0"
Thanks for helping
Still the same problem.. Thanks for helping
Try This :-
<span t-esc="'%.0f'% field_name"/>
I'm trying to hide the whole number not just the numbers after the decimal point
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up