This commit is contained in:
gsinghpal
2026-05-11 17:57:04 -04:00
parent eee2dcd615
commit 03f14c2c40
2 changed files with 35 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
{ {
"name": "Fusion Whitelabels", "name": "Fusion Whitelabels",
"version": "19.0.1.4.5", "version": "19.0.1.5.0",
"category": "Website", "category": "Website",
"summary": "Replace Odoo frontend promotional branding with Nexa Systems whitelabeling.", "summary": "Replace Odoo frontend promotional branding with Nexa Systems whitelabeling.",
"description": """ "description": """
@@ -12,10 +12,13 @@
- Removes "Connect with your software" portal promotions. - Removes "Connect with your software" portal promotions.
- Replaces global "Powered by Odoo" website/footer promotions with Nexa Systems credit. - Replaces global "Powered by Odoo" website/footer promotions with Nexa Systems credit.
- Removes login-page "Powered by Odoo" footer link. - Removes login-page "Powered by Odoo" footer link.
- Replaces "Powered by Odoo" footer in transactional email notifications
(mail.mail_notification_layout + mail.mail_notification_light) with
Nexa Systems credit.
""", """,
"author": "Fusion", "author": "Fusion",
"license": "LGPL-3", "license": "LGPL-3",
"depends": ["portal", "sale", "purchase", "website", "website_sale"], "depends": ["mail", "portal", "sale", "purchase", "website", "website_sale"],
"data": [ "data": [
"views/fusion_whitelabels_templates.xml", "views/fusion_whitelabels_templates.xml",
], ],

View File

@@ -36,4 +36,34 @@
</xpath> </xpath>
</template> </template>
<template id="fusion_whitelabels_mail_notification_layout"
inherit_id="mail.mail_notification_layout" priority="999">
<xpath expr="//div[@t-if='show_footer' and contains(@style, 'color: #555555')]" position="replace">
<div t-if="show_footer" style="color: #555555; font-size:11px;">
Designed by <a target="_blank" href="https://nexasystems.ca"
rel="noopener noreferrer"
t-att-style="'color: ' + (company.email_secondary_color or '#875A7B') + ';'">Nexa Systems</a>
<span t-if="show_unfollow" id="mail_unfollow">
| <a href="/mail/unfollow" style="text-decoration:none; color:#555555;">Unfollow</a>
</span>
</div>
</xpath>
</template>
<template id="fusion_whitelabels_mail_notification_light"
inherit_id="mail.mail_notification_light" priority="999">
<xpath expr="//tr[td/span[@id='mail_unfollow']]" position="replace">
<tr>
<td align="center" style="min-width: 590px;">
Designed by <a target="_blank" href="https://nexasystems.ca"
rel="noopener noreferrer"
t-att-style="'color: ' + (company.email_secondary_color or '#875A7B') + ';'">Nexa Systems</a>
<span t-if="show_unfollow" id="mail_unfollow">
| <a href="/mail/unfollow" style="text-decoration:none; color:#555555;">Unfollow</a>
</span>
</td>
</tr>
</xpath>
</template>
</odoo> </odoo>