Files
Odoo-Modules/fusion_whitelabels/views/fusion_whitelabels_templates.xml
gsinghpal f02dc382b7 fix(fusion_whitelabels): keep brand_promotion t-call so other modules can xpath onto it
The footer-credit override used position="replace" against the parent div
of <t t-call="web.brand_promotion"/>, which deleted the element from the
merged web.frontend_layout view. Any later module that anchors on that
t-call (e.g. Enterprise planning's planning.frontend_layout) failed to
install with "Element <xpath expr=//t[@t-call='web.brand_promotion']>
cannot be located in parent view".

Switched to position="after" on the t-call element itself. Odoo's branding
remains hidden via the existing fusion_whitelabels_nexa_brand_promotion
inherit (d-none on .o_brand_promotion), and the Nexa credit still renders.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 20:48:59 -04:00

40 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="fusion_whitelabels_sale_portal" inherit_id="sale.sale_order_portal_template" priority="999">
<xpath expr="//div[@t-if='sale_order._get_edi_builders()']" position="replace"/>
<xpath expr="//div[@id='sale_portal_connect_software_modal']" position="replace"/>
</template>
<template id="fusion_whitelabels_sale_report" inherit_id="sale.report_saleorder_document" priority="999">
<xpath expr="//div[@t-if=&quot;any(u._is_portal() for u in doc.partner_id.user_ids) and doc._get_edi_builders()&quot;]" position="replace"/>
</template>
<template id="fusion_whitelabels_purchase_portal" inherit_id="purchase.portal_my_purchase_order" priority="999">
<xpath expr="//div[@t-if='order._get_edi_builders()']" position="replace"/>
<xpath expr="//div[@id='portal_connect_software_modal']" position="replace"/>
</template>
<template id="fusion_whitelabels_portal_sidebar" inherit_id="portal.portal_record_sidebar" priority="999">
<xpath expr="//div[hasclass('d-none','d-lg-block','mt-5','small','text-center','text-muted')]" position="replace"/>
</template>
<template id="fusion_whitelabels_nexa_brand_promotion" inherit_id="web.brand_promotion" priority="999">
<xpath expr="//div[hasclass('o_brand_promotion')]" position="replace">
<div class="o_brand_promotion d-none"/>
</xpath>
</template>
<template id="fusion_whitelabels_footer_right_credit" inherit_id="web.frontend_layout" priority="999">
<xpath expr="//footer[@id='bottom']//div[hasclass('o_footer_copyright')]//t[@t-call='web.brand_promotion']" position="after">
<div class="o_fusion_nexa_brand_promotion">
<span class="o_fusion_nexa_brand_label">Designed by</span>
<a class="o_fusion_nexa_brand_link"
href="https://nexasystems.ca"
target="_blank"
rel="noopener noreferrer">Nexa Systems</a>
</div>
</xpath>
</template>
</odoo>