TNCSC_Odoo/addons/tncsc_deployment/views/website_header_overrides.xml
metatroncubeswdev a4d3f57f39
Some checks failed
CI / Brand-leak check (push) Has been cancelled
CI / flake8 / pylint-odoo / manifest completeness (push) Has been cancelled
CI / Install all modules with --test-enable (push) Has been cancelled
Fix TNCSC light theme, toolbar alignment, and duplicate website menus
Extend the ivory and gold palette to shared backend screens and remove conflicting toolbar layout overrides. Correct sidebar action selection and reserve compact sidebar spacing on smaller screens.

Hide the default website header on the 11 pages with custom TNCSC navigation using upgradeable template overrides that preserve edited page content.

Validation: SCSS compilation, JavaScript syntax, sidebar action selection, XML and manifest checks, brand-leak check, and static browser layout checks at four viewport widths passed. Live Odoo verification remains pending because the local Docker engine is unavailable.
2026-09-27 08:52:19 -04:00

95 lines
4.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- These pages provide their own TNCSC header and navigation.
Keep overrides outside the noupdate page seeds so upgrades apply
the fix without replacing administrator-edited page content. -->
<template id="view_page_home_custom_header_only"
inherit_id="tncsc_deployment.view_page_home"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
</template>
<template id="view_page_about_custom_header_only"
inherit_id="tncsc_deployment.view_page_about"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
</template>
<template id="view_page_tamil_nadu_custom_header_only"
inherit_id="tncsc_deployment.view_page_tamil_nadu"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
</template>
<template id="view_page_board_custom_header_only"
inherit_id="tncsc_deployment.view_page_board"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
</template>
<template id="view_page_membership_custom_header_only"
inherit_id="tncsc_deployment.view_page_membership"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
</template>
<template id="view_page_membership_benefits_custom_header_only"
inherit_id="tncsc_deployment.view_page_membership_benefits"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
</template>
<template id="view_page_membership_registration_custom_header_only"
inherit_id="tncsc_deployment.view_page_membership_registration"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
</template>
<template id="view_page_events_custom_header_only"
inherit_id="tncsc_deployment.view_page_events"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
</template>
<template id="view_page_product_summer_picnic_custom_header_only"
inherit_id="tncsc_deployment.view_page_product_summer_picnic"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
</template>
<template id="view_page_tamil_school_custom_header_only"
inherit_id="tncsc_deployment.view_page_tamil_school"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
</template>
<template id="view_page_contact_custom_header_only"
inherit_id="tncsc_deployment.view_page_contact"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
</template>
</odoo>