From d9efca0908e50d8c2edc6eea463baa68d2c30ab8 Mon Sep 17 00:00:00 2001
From: Christophe Matthieu Your advantage:
+ t-field-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
@@ -97,7 +97,7 @@
Subtotal
-
+
diff --git a/addons/event/report/event_event_templates.xml b/addons/event/report/event_event_templates.xml
index 39f4b21bf6f..efb46e5ce6f 100644
--- a/addons/event/report/event_event_templates.xml
+++ b/addons/event/report/event_event_templates.xml
@@ -18,7 +18,7 @@
Total
-
+
-
( to )
+ ( to )
( to )
+ ( to )
+ t-field-options='{"widget": "monetary", "display_currency": line.currency_id}'/>
@@ -75,7 +75,7 @@
+ t-field-options='{"widget": "monetary", "display_currency": line.currency_id}'/>
diff --git a/addons/lunch/report/lunch_order_templates.xml b/addons/lunch/report/lunch_order_templates.xml
index 58af7ebdc46..588e5392d2a 100644
--- a/addons/lunch/report/lunch_order_templates.xml
+++ b/addons/lunch/report/lunch_order_templates.xml
@@ -51,7 +51,7 @@
+ t-field-options='{"widget": "monetary", "display_currency": user.company_id.currency_id}'/>
diff --git a/addons/mrp_repair/views/report_mrprepairorder.xml b/addons/mrp_repair/views/report_mrprepairorder.xml
index 0e66cba9ebc..df7e1049fa6 100644
--- a/addons/mrp_repair/views/report_mrprepairorder.xml
+++ b/addons/mrp_repair/views/report_mrprepairorder.xml
@@ -88,7 +88,7 @@
+ t-field-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/>
@@ -112,7 +112,7 @@
+ t-field-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/>
@@ -127,21 +127,21 @@
Total Without Taxes
+ t-field-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/>
Taxes
+ t-field-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/>
diff --git a/addons/point_of_sale/views/report_statement.xml b/addons/point_of_sale/views/report_statement.xml
index bc4cc70b473..cedd7f55309 100644
--- a/addons/point_of_sale/views/report_statement.xml
+++ b/addons/point_of_sale/views/report_statement.xml
@@ -34,11 +34,11 @@
Total
+ t-field-options='{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}'/>
-
+
-
+
+ t-field-options='{"widget": "monetary", "display_currency": res_company.currency_id}'/>
@@ -67,7 +67,7 @@
diff --git a/addons/purchase/views/report_purchaseorder.xml b/addons/purchase/views/report_purchaseorder.xml
index 138f40ca7e1..cdc15a3e754 100644
--- a/addons/purchase/views/report_purchaseorder.xml
+++ b/addons/purchase/views/report_purchaseorder.xml
@@ -76,7 +76,7 @@
Total
-
+
+ t-field-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
@@ -89,21 +89,21 @@
Total Without Taxes
+ t-field-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
Taxes
+ t-field-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
diff --git a/addons/report_intrastat/report/report_intrastat_invoice_template.xml b/addons/report_intrastat/report/report_intrastat_invoice_template.xml
index 65cb7c26cc4..4fa10563f72 100644
--- a/addons/report_intrastat/report/report_intrastat_invoice_template.xml
+++ b/addons/report_intrastat/report/report_intrastat_invoice_template.xml
@@ -67,7 +67,7 @@
Total
+ t-field-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
+ t-field-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
@@ -79,19 +79,19 @@
Total Without Taxes
-
+
Taxes
-
+
@@ -112,7 +112,7 @@
Total
-
+
+ t-field-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
diff --git a/addons/sale/views/report_invoice_layouted.xml b/addons/sale/views/report_invoice_layouted.xml
index bcbf57de207..3ee9d65c707 100644
--- a/addons/sale/views/report_invoice_layouted.xml
+++ b/addons/sale/views/report_invoice_layouted.xml
@@ -48,7 +48,7 @@
+ t-field-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
+ t-field-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'/>
@@ -128,7 +128,7 @@
Total Without Taxes
+ t-field-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'/>
Total
+ t-field-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'/>
diff --git a/addons/website/models/ir_qweb.py b/addons/website/models/ir_qweb.py
index c8c0fe64613..6c9cd9f41b7 100644
--- a/addons/website/models/ir_qweb.py
+++ b/addons/website/models/ir_qweb.py
@@ -2,7 +2,6 @@
from openerp.addons.web.http import request
from openerp.osv import orm
import ast
-from openerp.addons.base.ir.ir_qweb import utils
class QWeb(orm.AbstractModel):
@@ -29,7 +28,7 @@ class QWeb(orm.AbstractModel):
]
def _website_build_attribute(self, tagName, name, value, qwebcontext):
- context = qwebcontext.context or {}
+ context = qwebcontext.env.context or {}
if not context.get('rendering_bundle'):
if name == self.URL_ATTRS.get(tagName) and qwebcontext.get('url_for'):
return qwebcontext.get('url_for')(value or '')
diff --git a/addons/website_event_sale/views/website_event_sale_templates.xml b/addons/website_event_sale/views/website_event_sale_templates.xml
index 10dff2e264b..f4f628bd501 100644
--- a/addons/website_event_sale/views/website_event_sale_templates.xml
+++ b/addons/website_event_sale/views/website_event_sale_templates.xml
@@ -40,13 +40,13 @@
Duration
-
+
Location
diff --git a/addons/website_portal_sale/views/templates.xml b/addons/website_portal_sale/views/templates.xml
index 80103dca671..0b251c6abb9 100644
--- a/addons/website_portal_sale/views/templates.xml
+++ b/addons/website_portal_sale/views/templates.xml
@@ -91,7 +91,7 @@
Expired
+
@@ -136,7 +136,7 @@
Done
-
+
@@ -186,7 +186,7 @@
Pay Now
-
+
@@ -319,7 +319,7 @@
@@ -72,7 +72,7 @@
+ t-field-options='{"widget": "monetary", "display_currency": quotation.pricelist_id.currency_id}'/>
Subtotal:
-
+
@@ -108,7 +108,7 @@
Taxes:
-
+
@@ -116,7 +116,7 @@
Total:
-
+
@@ -220,22 +220,22 @@
( Incl. tax)
+ t-field-options='{"widget": "monetary", "display_currency": quotation.pricelist_id.currency_id}'/> Incl. tax)
Product not available