Number of digits after comma QWEB PDF Odoo

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" />

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.