vendredi 27 novembre 2020

How to inherit website footer and homepage (Odoo 14)

I want to inherit website footer and homepage in Odoo 14 , I tried with this code , but didn't work : no change at website.

<template id="footer" inherit_id="website.footer_custom" name="Footer" active="True">
        <xpath expr="//div[@id='footer']" position="replace">
        <h1>Footer</h1>
        </xpath>
</template>

 <template id="homepage" inherit_id="website.homepage" name="Homepage">
        <xpath expr="//div[@id='wrap']" position="replace">
            <div id="wrap" class="oe_structure oe_empty">
                 <h1>Homepage</h1>
            </div>
        </xpath>
    </template>

Any help please?




Aucun commentaire:

Enregistrer un commentaire