[FIX] account: price_unit report decimal precision

Before this commit, the unit price in the invoice's reports, had the
same decimal precision as the currency and not the one specified for the
unit prices.

Now, the reports shows the unit prices with their specific decimal
precision.

opw-1940406

closes odoo/odoo#31314
This commit is contained in:
Jorge Pinna Puissant
2019-02-21 08:35:09 +00:00
parent 7ffe3ce5c6
commit a1e6a0f0c5
+1 -1
View File
@@ -84,7 +84,7 @@
<span t-field="line.uom_id" groups="uom.group_uom"/>
</td>
<td t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span t-field="line.price_unit" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
<span t-field="line.price_unit"/>
</td>
<td t-if="display_discount" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<span t-field="line.discount"/>