我如何删除由Odoo(ODOO 14)发送 /发送的驱动器

问题描述 投票:0回答:4
python xml odoo
4个回答
3
投票

<?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&amp;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中,更改:


1
投票

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&amp;utm_medium=email" style="text-decoration:none; color: #875A7B;">Odoo</a>.

1
投票

对于我来说,它努力将其删除

<?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

    

0
投票
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.