Skip to Content
Menu
This question has been flagged
3 Replies
3045 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>

Related Posts Replies Views Activity
0
Mar 19
2428
2
Nov 16
4685
3
Jun 24
390
6
Jun 24
3490
1
Jun 23
1276