From dc59277a4341c7c96bb156b0cfda697742a71646 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Mon, 30 Apr 2012 15:21:03 +0200 Subject: [PATCH] [FIX] account,sale,purchase: avoid white text in email notifications due to broken mail clients Some strange mail client implementations seem to selectively strip the background-color CSS in emails, making a white-on-black button become white-on-white invisible text. Replaced #FFF with #DDD in order to more gracefully degrade in those cases. Reproduced with Lotus Notes 8. bzr revid: odo@openerp.com-20120430132103-ei61f9m9irpmh2ys --- addons/account/edi/invoice_action_data.xml | 6 +++--- addons/purchase/edi/purchase_order_action_data.xml | 6 +++--- addons/sale/edi/sale_order_action_data.xml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/addons/account/edi/invoice_action_data.xml b/addons/account/edi/invoice_action_data.xml index 0904ec6fd54..04554300c38 100644 --- a/addons/account/edi/invoice_action_data.xml +++ b/addons/account/edi/invoice_action_data.xml @@ -44,7 +44,7 @@ +

Hello${object.address_invoice_id.name and ' ' or ''}${object.address_invoice_id.name or ''},

@@ -64,7 +64,7 @@

You can view the invoice document, download it and pay online using the following link:

- View Invoice % if object.company_id.paypal_account and object.type in ('out_invoice', 'in_refund'): @@ -91,7 +91,7 @@

-

+

${object.company_id.name}

diff --git a/addons/purchase/edi/purchase_order_action_data.xml b/addons/purchase/edi/purchase_order_action_data.xml index f3f610b8e75..ee3c8206222 100644 --- a/addons/purchase/edi/purchase_order_action_data.xml +++ b/addons/purchase/edi/purchase_order_action_data.xml @@ -42,7 +42,7 @@ +

Hello${object.partner_address_id.name and ' ' or ''}${object.partner_address_id.name or ''},

@@ -65,7 +65,7 @@

You can view the order confirmation document and download it using the following link:

- View Order
@@ -74,7 +74,7 @@

-

+

${object.company_id.name}

diff --git a/addons/sale/edi/sale_order_action_data.xml b/addons/sale/edi/sale_order_action_data.xml index 3d7a554ff4a..c11820cf9a9 100644 --- a/addons/sale/edi/sale_order_action_data.xml +++ b/addons/sale/edi/sale_order_action_data.xml @@ -44,7 +44,7 @@ +

Hello${object.partner_order_id.name and ' ' or ''}${object.partner_order_id.name or ''},

@@ -67,7 +67,7 @@

You can view the order confirmation document, download it and pay online using the following link:

- View Order % if object.order_policy in ('prepaid','manual') and object.company_id.paypal_account: @@ -95,7 +95,7 @@

-

+

${object.company_id.name}