hide_powered_by_odoo/views/web_templates.xml

47 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- 1. Brand Promotion Message Override (Web/Portal) -->
<template id="brand_promotion_message" inherit_id="web.brand_promotion_message">
<xpath expr="//t[@t-set='odoo_logo']" position="replace"/>
<xpath expr="//t[@t-set='final_message']" position="replace"/>
<xpath expr="//t[@t-out]" position="replace"/>
</template>
<!-- 2. Website Brand Promotion Override (Website) -->
<template id="website_brand_promotion" inherit_id="website.brand_promotion">
<xpath expr="//t[@t-call='web.brand_promotion_message']" position="replace"/>
</template>
<!-- 3. Portal Record Sidebar Override (Portal) -->
<template id="portal_record_sidebar" inherit_id="portal.portal_record_sidebar">
<xpath expr="//div[contains(@class, 'text-muted') and contains(., 'Powered by')]" position="replace"/>
</template>
<!-- 4. Login Page Footer Override (Web) -->
<template id="login_layout" inherit_id="web.login_layout">
<xpath expr="//a[@href='https://www.odoo.com?utm_source=db&amp;utm_medium=auth'] | //a[@href='https://www.odooai.cn']" position="replace"/>
</template>
<!-- 5. Email Notification Layout Footer Override (Mail) -->
<template id="mail_notification_layout" inherit_id="mail.mail_notification_layout">
<xpath expr="//div[contains(@style, 'color: #555555;')]" position="replace">
<div t-if="show_footer" style="color: #555555; font-size:11px;">
<span t-if="show_unfollow" id="mail_unfollow">
<a href="/mail/unfollow" style="text-decoration:none; color:#555555;">Unfollow</a>
</span>
</div>
</xpath>
</template>
<!-- 6. Email Notification Light Layout Footer Override (Mail) -->
<template id="mail_notification_light" inherit_id="mail.mail_notification_light">
<xpath expr="//tr[td[contains(., 'Powered by')]]/td" position="replace">
<td align="center" style="min-width: 590px; font-size: 11px;">
<span t-if="show_unfollow" id="mail_unfollow">
<a href="/mail/unfollow" style="text-decoration:none; color:#555555;">Unfollow</a>
</span>
</td>
</xpath>
</template>
</odoo>