summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2019-07-25 09:19:14 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2019-07-25 09:19:14 +0000
commit44e8fd3b18352b60e6e2f9f63a590bce2abdbd3d (patch)
tree5f495a7ea80b87918e602ef7e4d8a1293802ded3
parentc7beb9994f2b3aecef3f03aa81e0240e0d3eaf71 (diff)
[FIX] sale: price_unit in portal decimal precision
Before this commit, the unit price in the so's portal, had the same decimal precision as the currency and not the one specified for the unit prices. Now, the portal shows the unit prices with their specific decimal precision. related to : a1e6a0f0c5ca56efd1b7c0f29f794fa1fcf5f8e3 opw-2042089 closes odoo/odoo#35171 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
-rw-r--r--addons/sale/views/sale_portal_templates.xml3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/sale/views/sale_portal_templates.xml b/addons/sale/views/sale_portal_templates.xml
index 8c794f50866..77b0ac748ce 100644
--- a/addons/sale/views/sale_portal_templates.xml
+++ b/addons/sale/views/sale_portal_templates.xml
@@ -468,12 +468,11 @@
<div
t-if="line.discount &gt;= 0"
t-field="line.price_unit"
- t-options='{"widget": "monetary", "display_currency": sale_order.pricelist_id.currency_id}'
t-att-style="line.discount and 'text-decoration: line-through' or None"
t-att-class="(line.discount and 'text-danger' or '') + ' text-right'"
/>
<div t-if="line.discount">
- <t t-esc="(1-line.discount / 100.0) * line.price_unit" t-options='{"widget": "monetary", "display_currency": sale_order.pricelist_id.currency_id}'/>
+ <t t-esc="(1-line.discount / 100.0) * line.price_unit" t-options='{"widget": "float", "decimal_precision": "Product Price"}'/>
</div>
</td>
<td t-if="display_discount" t-attf-class="text-right {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}">