The nexa-branded inherit on web.brand_promotion replaced the entire <div class="o_brand_promotion"> wrapper with an empty hidden div, which also stripped out the <t t-call="web.brand_promotion_message"/> child. Enterprise planning's planning.brand_promotion (primary inherit on web.brand_promotion) then xpath'd onto that t-call and failed to install: "Element <xpath expr=//t[@t-call='web.brand_promotion_message']> cannot be located in parent view". Switched to position="attributes" with add="d-none" so the wrapper still gets hidden but its children stay in the merged arch for downstream xpaths. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
40 lines
2.1 KiB
XML
40 lines
2.1 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="any(u._is_portal() for u in doc.partner_id.user_ids) and doc._get_edi_builders()"]" 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="attributes">
|
|
<attribute name="class" add="d-none" separator=" "/>
|
|
</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>
|