This question has been flagged
3 Replies
2876 Views

When I added a module to my website my footer (one where it says copyright info & switch language &powered by Odoo) is positioned at the middle of the site, its at a fixed spot on all the pages.instead of the bottom of the page. I think the footer lost the dynamic nature if it. I uninstalled the module and its still the same. Can you tell me how to reset this error.

Avatar
Discard
Best Answer

I am also having this problem, did you have any luck resolving it?

Avatar
Discard
Author

nothing I was hoping someone from odoo to help out but no luck yet

as you can see above, I found a solution wiith height: auto; attribute in <main> div

Best Answer

Hello just found how to solve the issue :

change in "Frontend Layout" view (ID: web.frontend_layout)

add 

style="height: auto;" 
to `<main>` div to have correct behavior
                <main style="height: auto;">
                    <t t-raw="0"/>
                </main>

   

I leave it to you, to do the necessary <xpath> modifications.

Hope this help


Avatar
Discard

xpath inherited viiew :

<record model="ir.ui.view" id="frontend_layout_fix">

<field name="name">Frontend Layout fix</field>

<field name="inherit_id" ref="web.frontend_layout"/>

<field name="arch" type="xml">

<data>

<xpath expr="//main" position="attributes">

<attribute name="style">height: auto;</attribute>

</xpath>

</data>

</field>

</record>