From 87b0189ff1970745f3bddaf21f8b76b1bfe75ba3 Mon Sep 17 00:00:00 2001 From: Renaud Thiry Date: Thu, 24 Nov 2022 07:32:55 +0000 Subject: [PATCH] [IMP] mail: remove default logo Many templates use the company logo that is set by default on database creation. As that logo is clearly a placeholder and the user isn't necesserely prompted to update it. It's possible for a user to inadvertently start sending emails with "your logo" placeholders plastered all over. This removes the default logo of the company and removes it from templates conditionally. The logo isn't simply replaced with a transparent PNG as the templates set a fixed height for the logo, which would look weird. task-3067315 Part-of: odoo/odoo#106307 --- addons/auth_signup/data/mail_template_data.xml | 6 +++--- addons/event/data/mail_template_data.xml | 4 ++-- addons/gamification/data/mail_template_data.xml | 2 +- addons/hr_expense/data/mail_templates.xml | 4 ++-- addons/im_livechat/data/mail_templates.xml | 2 +- addons/lunch/data/mail_template_data.xml | 2 +- addons/mail/data/mail_templates_email_layouts.xml | 8 ++++---- addons/portal/data/mail_template_data.xml | 2 +- addons/survey/data/mail_template_data.xml | 4 +++- addons/website/models/website.py | 4 ++-- .../data/mail_template_data.xml | 2 +- addons/website_profile/data/mail_template_data.xml | 2 +- addons/website_slides/data/mail_templates.xml | 4 ++-- odoo/addons/base/models/res_company.py | 11 ++++++++++- odoo/addons/base/tests/test_res_company.py | 12 ++++++++++++ 15 files changed, 46 insertions(+), 23 deletions(-) diff --git a/addons/auth_signup/data/mail_template_data.xml b/addons/auth_signup/data/mail_template_data.xml index 717ec810875..19b35598938 100644 --- a/addons/auth_signup/data/mail_template_data.xml +++ b/addons/auth_signup/data/mail_template_data.xml @@ -22,7 +22,7 @@ Marc Demo - + @@ -118,7 +118,7 @@ Marc Demo - + @@ -266,7 +266,7 @@ Marc Demo - + diff --git a/addons/event/data/mail_template_data.xml b/addons/event/data/mail_template_data.xml index 392b637d14d..e34855e198b 100644 --- a/addons/event/data/mail_template_data.xml +++ b/addons/event/data/mail_template_data.xml @@ -59,7 +59,7 @@ View Event - + @@ -290,7 +290,7 @@ View Event - + diff --git a/addons/gamification/data/mail_template_data.xml b/addons/gamification/data/mail_template_data.xml index 74bb0d35696..30c02a05821 100644 --- a/addons/gamification/data/mail_template_data.xml +++ b/addons/gamification/data/mail_template_data.xml @@ -18,7 +18,7 @@ Your Badge
- + diff --git a/addons/hr_expense/data/mail_templates.xml b/addons/hr_expense/data/mail_templates.xml index bf39d13774f..52e221919bf 100644 --- a/addons/hr_expense/data/mail_templates.xml +++ b/addons/hr_expense/data/mail_templates.xml @@ -34,10 +34,10 @@