fix(fusion_whitelabels): hide brand_promotion via class attr instead of replacing inner div
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>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
{
|
||||
"name": "Fusion Whitelabels",
|
||||
"version": "19.0.1.4.4",
|
||||
"version": "19.0.1.4.5",
|
||||
"category": "Website",
|
||||
"summary": "Replace Odoo frontend promotional branding with Nexa Systems whitelabeling.",
|
||||
"description": """
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
</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 expr="//div[hasclass('o_brand_promotion')]" position="attributes">
|
||||
<attribute name="class" add="d-none" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user