Skip to content

Instantly share code, notes, and snippets.

@jaredkipe
Created December 14, 2016 21:35
Show Gist options
  • Save jaredkipe/2c1a94f8607c26567bc6be558fe32123 to your computer and use it in GitHub Desktop.
Save jaredkipe/2c1a94f8607c26567bc6be558fe32123 to your computer and use it in GitHub Desktop.
Odoo De-Brand Email
-- note that you should find and replace the 'new color' (#505fb5) prior to running.
-- Colors
UPDATE mail_template set body_html =
replace(replace(body_html, '#875A7B', '#505fb5'), 'rgb(135,90,123)', '#505fb5')
;
-- Footers
UPDATE mail_template set body_html =
replace(body_html, ' <tr>
<td align="center">
Powered by <a href="https://www.odoo.com">Odoo</a>.
</td>
</tr>', '');
UPDATE mail_template set body_html =
replace(body_html, ' using <a href="www.odoo.com" style=" color: #505fb5;"><strong>Odoo</strong></a>', '');
UPDATE mail_template set body_html =
replace(body_html, ' using <a href="www.odoo.com" style="text-decoration:none; color: #505fb5;"><strong>Odoo</strong></a>', '');
UPDATE mail_template set body_html =
replace(body_html, ' using
<a href="https://www.odoo.com" style="text-decoration:none; color: #505fb5;">Odoo</a>', '');
UPDATE mail_template set body_html =
replace(body_html, ' <p>---<br />
Odoo - Open Source Business Applications<br />
http://www.odoo.com<br />
</p>', '');
UPDATE mail_template set body_html =
replace(body_html, ' <p style="font-size: 11px; margin-top: 10px;">
<strong>Sent by ${user.company_id.name} using <a href="www.odoo.com" style="text-decoration:none; color: #505fb5;">Odoo</a></strong>
</p>', '');
@GrupoAlvamex
Copy link

Sr, thank you very much

@GrupoAlvamex
Copy link

Do you know , how can I remove odoo logo from email template?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment