From 7cab5545908da0038aeaccf02dbc6f04b90f70f9 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 9 Nov 2015 15:34:31 +0100 Subject: [PATCH] [FIX] portal_sale,website_quote: templates compatible with wysiwyg <% are automatically escaped as soon as the wysiwyg tool is used to edit the template. The wysiwyg tool is not compatible with Jinja, and it isn't expected to be. To avoid to have this problem everytime when editing the portal email templates, we use a Jinja syntax compatible with the wysiwyg, as a workaround. opw-654223 --- addons/portal_sale/portal_sale_data.xml | 4 ++-- addons/website_quote/data/website_quotation_data.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/portal_sale/portal_sale_data.xml b/addons/portal_sale/portal_sale_data.xml index 267dcaeca81..97254feba89 100644 --- a/addons/portal_sale/portal_sale_data.xml +++ b/addons/portal_sale/portal_sale_data.xml @@ -38,7 +38,7 @@ % endif

- <% set signup_url = object.get_signup_url() %> + % set signup_url = object.get_signup_url() % if signup_url:

You can access this document and pay online via our Customer Portal: @@ -125,7 +125,7 @@ % endif

- <% set signup_url = object.get_signup_url() %> + % set signup_url = object.get_signup_url() % if signup_url:

You can access the invoice document and pay online via our Customer Portal: diff --git a/addons/website_quote/data/website_quotation_data.xml b/addons/website_quote/data/website_quotation_data.xml index 384b092e118..05802f6a8b7 100644 --- a/addons/website_quote/data/website_quotation_data.xml +++ b/addons/website_quote/data/website_quotation_data.xml @@ -122,7 +122,7 @@ % endif

- <% set signup_url = object.get_signup_url() %> + % set signup_url = object.get_signup_url() % if signup_url:

You can access this document and pay online via our Customer Portal: