Files
Odoo-Build/snippets/account.report_invoice_document.round_price.xml
T

6 lines
320 B
XML

<data inherit_id="account.report_invoice_document" priority="50">
<xpath expr="//span[@t-field='line.price_unit']" position="replace">
<span t-esc="'%g' % line.price_unit if str(line.price_unit)[::-1].find('.') &gt;= 3 else '{0:,.2f}'.format(float(line.price_unit)).replace(',','\'')"/>
</xpath>
</data>