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:
gsinghpal
2026-05-06 21:00:44 -04:00
parent f02dc382b7
commit 3b7dba32a4
2 changed files with 3 additions and 3 deletions

View File

@@ -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": """

View File

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