From af6baac9c76f576e2fe5bba8344b88f23337d91a Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Thu, 19 Oct 2017 10:51:52 +0200 Subject: [PATCH] [FIX] account, sale: fix notification templates inline style Before this commit, Sale order and invoice notification email templates broke when doing any action on them (duplicating, open preview etc...) This is because the model is saved during those operation, and the css style gets converted to inline style. The table tag present in those templates, was wrongly associated with the bootstrap rule for tables, collapsing their border, hence the break of the templates. After this commit, we force the borders not to collapse, and the templates don't break OPW 774323 --- addons/account/data/invoice_action_data.xml | 8 ++++---- addons/sale/data/mail_template_data.xml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/account/data/invoice_action_data.xml b/addons/account/data/invoice_action_data.xml index 4752247b988..3e552f01486 100644 --- a/addons/account/data/invoice_action_data.xml +++ b/addons/account/data/invoice_action_data.xml @@ -65,13 +65,13 @@ from ${object.company_id.name}. % set record = ctx.get('record') % set company = record and record.company_id or user.company_id - +
- +
@@ -89,7 +89,7 @@ from ${object.company_id.name}.
- +
${object.body | safe} @@ -102,7 +102,7 @@ from ${object.company_id.name}.
- +
${company.name}
diff --git a/addons/sale/data/mail_template_data.xml b/addons/sale/data/mail_template_data.xml index 7bc9804bdb1..c3a61e0b421 100644 --- a/addons/sale/data/mail_template_data.xml +++ b/addons/sale/data/mail_template_data.xml @@ -66,13 +66,13 @@ from ${object.company_id.name}. % set record = ctx.get('record') % set company = record and record.company_id or user.company_id - +
- +
@@ -90,7 +90,7 @@ from ${object.company_id.name}.
- +
${object.body | safe} @@ -103,7 +103,7 @@ from ${object.company_id.name}.
- +
${company.name}