Files
Odoo-Build/snippets/purchase.report_purchaseorder_document.round_price.xml
T

6 lines
299 B
XML

<data inherit_id="purchase.report_purchaseorder_document" priority="50">
<xpath expr="//tbody//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 '%.2f' % line.price_unit"/>
</xpath>
</data>