Number of digits after comma QWEB PDF Odoo

3
(1)

This code bellow will display on the QWEB PDF 4 digits after comma of qty field, for 2 digits just replace by '%.2f'%

<span t-esc="'%.4f'% o.qty" />

How useful was this post?

Average rating 3 / 5. Vote count: 1

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.