Decimal Places on QWeb and Kanban View
Decimal Places
Probuse Admin
Question:
I am using this code to change/control decimals on reports: <span t-esc="'&.2f'%l.quantity" />
I am using this code to change/control decimals on reports: <span t-esc="'&.2f'%l.quantity" />
This will show for example: 100.00
But how can i change to show: 100,00 ?
Solution:
Solution:
<span t-esc="str('%.2f'%l.product_uom_qty).replace('.', ',')"/> or <span t-esc="str('%.2f'%l.quantity).replace('.', ',')"/>
--------------------------------------------------------
Question:
How to remove decimal place values for lst_price in product kanban view.
Solution:
For kanban view it is not working.
For kanban view it is not working.
We have also tried to converting field in xml as below:
<li>Price: <field name="lst_price"/> </li> ---> <li>Price: <t t-esc="int(record.lst_price.value)"/></li>
but above is also not working... (Similar like Report qweb where it works).
I think, You can create new function field with lst_price_integer and show in kanban view that is only solution for now.
--------------------------------------------------------