From 5028da38736f7f3c4bf651779c0bfe39a31f91c1 Mon Sep 17 00:00:00 2001 From: Mitali Patel Date: Thu, 30 Aug 2018 12:56:49 +0530 Subject: [PATCH] [FIX] website_sale: removing compute_currency function from qweb template (#26606) compute method called 2 times in t-esc case when monetary field has "from_currency :: 1) value_to_html: compute method call when qweb monetary widget is return value as a html. see https://github.com/odoo/odoo/blob/10.0/odoo/addons/base/ir/ir_qweb/fields.py#L325 2) compute_currency : compute_currency method is pass from controller into render engine and it is call the compute method. So, we removed compute_currency method from qweb template in the t-esc with monetary widget. --- addons/website_sale/views/templates.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 2f576530b88..0241cc8536a 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -103,7 +103,7 @@
- + @@ -587,7 +587,7 @@

@@ -878,7 +878,7 @@ - +