<?xml version="1.0"?>
<t name="Brand Promotion Message" t-name="web.brand_promotion_message">
<t t-set="odoo_logo">
<a target="_blank" t-attf-href="http://www.odoo.com?utm_source=db&utm_medium=#{_utm_medium}" class="badge badge-light">
<img alt="Odoo" src="/web/static/src/img/odoo_logo_tiny.png" style="height: 1em; vertical-align: baseline;"/>
</a>
</t>
<!-- <t t-set="final_message">Powered by %s%s</t>
<t t-raw="final_message % (odoo_logo, _message and ('- %s' % _message) or '')"/>
-->
</t>
它起作用!享受!
在ODOO 14:您可以用评论
<t t-set="final message">
删除消息,但是该块仍然占用页脚中的空间。从页脚上删除DIV: 转到网络,向上右键单击“自定义”,然后在“ HTML/CSS编辑器”上单击“ home”(白色bar),然后搜索“前端布局”。在HTML中,更改:
to
<div class="col-sm text-center text-sm-right" style="display: none;">
看起来您的XPath有问题。
以下代码部分负责“ Odoo发送”电子邮件页脚:<p style="color: #555555; margin-top:32px;">
Sent
<span t-if="company.name">
by
<a t-if="website_url" t-att-href="website_url" style="text-decoration:none; color: #875A7B;">
<span t-esc="company.name"/>
</a>
<span t-if="not website_url" t-esc="company.name"/>
</span>
using
<a target="_blank" href="https://www.odoo.com?utm_source=db&utm_medium=email" style="text-decoration:none; color: #875A7B;">Odoo</a>.
对于我来说,它努力将其删除
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="message_notification_email_without_branding" inherit_id="mail.message_notification_email">
<xpath expr="//p[@style='color: #555555; margin-top:32px;']" position="replace">
<p/>
</xpath>
</template>
</odoo>
您可以轻松地从下面列出的应用程序中删除“由Odoo”页脚删除。
https://apps.odoo.com/apps/modules/18.0/ace_remove_website_powered_byed_by_odoo