Hi all!
I try to extend footer in website.layout template in my module:
[template.xml]
<template id="layout_footer_counters" inherit_id="website.layout" name="Counters">
<xpath expr="//div[contains(@id, 'footer')]" position="inside">
<div class="container">
<t t-foreach="website.get_all_counters() or []" t-as="counter">
<div> <t t-raw="counter.counter"/> </div>
</t>
</div>
</xpath>
</template>
But this block not displayed. If i extend header all work fine:
<template id="assets_frontend" inherit_id="website.assets_frontend" name="Shop">
<xpath expr="." position="inside">
<script type="text/javascript" src="/pr_webcounter/static/src/js/statisctics.js"></script>
</xpath>
</template>
What is wrong? Where is my mistake?
An idea how to inherit header and footer.
http://learnopenerp.blogspot.com/2018/10/how-to-add-custom-header-and-footer-in-qweb-reports-in-odoo.html