From b395ade0784622d16a58ee4a54e616cca2b98a41 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Wed, 20 Jan 2016 10:47:21 +0100 Subject: [PATCH] [IMP] *: unnecessary safe filter for subject template With 6dde919 email subject field are not autoescaped by default, thus using safe is not necessary. closes #10547 --- addons/account/data/invoice_action_data.xml | 2 +- addons/portal/portal_data.xml | 2 +- addons/portal_sale/portal_sale_data.xml | 4 ++-- addons/purchase/data/mail_template_data.xml | 2 +- addons/sale/data/mail_template_data.xml | 2 +- addons/website_quote/data/website_quotation_data.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/addons/account/data/invoice_action_data.xml b/addons/account/data/invoice_action_data.xml index 73339ca4809..7dfad3c2ea0 100644 --- a/addons/account/data/invoice_action_data.xml +++ b/addons/account/data/invoice_action_data.xml @@ -8,7 +8,7 @@ Invoice - Send by Email ${(object.user_id.email and '%s <%s>' % (object.user_id.name, object.user_id.email) or '')|safe} - ${object.company_id.name|safe} Invoice (Ref ${object.number or 'n/a'}) + ${object.company_id.name} Invoice (Ref ${object.number or 'n/a'}) ${object.partner_id.id} diff --git a/addons/portal/portal_data.xml b/addons/portal/portal_data.xml index deaba0bebf2..fc22ab81fb2 100644 --- a/addons/portal/portal_data.xml +++ b/addons/portal/portal_data.xml @@ -12,7 +12,7 @@ ${(user.email or '')|safe} ${object.partner_id.email} - Your Odoo account at ${user.company_id.name|safe} + Your Odoo account at ${user.company_id.name} ${object.partner_id.lang} diff --git a/addons/portal_sale/portal_sale_data.xml b/addons/portal_sale/portal_sale_data.xml index 6ee95291fda..f6f3d6d1711 100644 --- a/addons/portal_sale/portal_sale_data.xml +++ b/addons/portal_sale/portal_sale_data.xml @@ -7,7 +7,7 @@ Sales Order - Send by Email (Portal) ${(object.user_id.email and '%s <%s>' % (object.user_id.name, object.user_id.email) or '')|safe} - ${object.company_id.name|safe} ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'} (Ref ${object.name or 'n/a' }) + ${object.company_id.name} ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'} (Ref ${object.name or 'n/a' }) ${object.partner_invoice_id.id} @@ -90,7 +90,7 @@ Invoice - Send by Email (Portal) ${(object.user_id.email and '%s <%s>' % (object.user_id.name, object.user_id.email) or '')|safe} - ${object.company_id.name|safe} Invoice (Ref ${object.number or 'n/a' }) + ${object.company_id.name} Invoice (Ref ${object.number or 'n/a' }) ${object.partner_id.id} diff --git a/addons/purchase/data/mail_template_data.xml b/addons/purchase/data/mail_template_data.xml index 34184bd0dc6..9a938465f9d 100644 --- a/addons/purchase/data/mail_template_data.xml +++ b/addons/purchase/data/mail_template_data.xml @@ -6,7 +6,7 @@ RFQ - Send by Email ${(object.create_uid.email and '%s <%s>' % (object.create_uid.name, object.create_uid.email) or '')|safe} - ${object.company_id.name|safe} Order (Ref ${object.name or 'n/a' }) + ${object.company_id.name} Order (Ref ${object.name or 'n/a' }) ${object.partner_id.id} diff --git a/addons/sale/data/mail_template_data.xml b/addons/sale/data/mail_template_data.xml index 694d676b965..571baea128a 100644 --- a/addons/sale/data/mail_template_data.xml +++ b/addons/sale/data/mail_template_data.xml @@ -6,7 +6,7 @@ Sales Order - Send by Email ${(object.user_id.email and '%s <%s>' % (object.user_id.name, object.user_id.email) or '')|safe} - ${object.company_id.name|safe} ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'} (Ref ${object.name or 'n/a' }) + ${object.company_id.name} ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'} (Ref ${object.name or 'n/a' }) ${object.partner_invoice_id.id} diff --git a/addons/website_quote/data/website_quotation_data.xml b/addons/website_quote/data/website_quotation_data.xml index d559befc5ea..bdd671475dc 100644 --- a/addons/website_quote/data/website_quotation_data.xml +++ b/addons/website_quote/data/website_quotation_data.xml @@ -93,7 +93,7 @@ Sales Order - Send by Email (Online Quote) ${(object.user_id.email and '%s <%s>' % (object.user_id.name, object.user_id.email) or '')|safe} - ${object.company_id.name|safe} ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'} (Ref ${object.name or 'n/a' }) + ${object.company_id.name} ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'} (Ref ${object.name or 'n/a' }) ${object.partner_invoice_id.id}