Odoo Help

0

remove mobile version in odoo website

By
Hengky Zhang
on 2/11/15, 3:16 AM 986 views

can someone help me how to remove or disable mobile version in odoo website (CMS) 

1
Vasanth
On 2/11/15, 6:11 AM

hi,

you can do by inherit concept.

you should create a file as "website_mobile_view.xml" in the path "views/website_mobile_view.xml" in your odoo module and add the file to the __openerp.py file.

In website_mobile_view.xml:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

<template id="mobile" inherit_id="website.user_navbar">
    <xpath expr="//i[@class='fa fa-mobile']" position="replace">
    </xpath>
</template>
</data>
</openerp>

 

it works.All the best

what it want to remove is mobile version not the navbar i mean when i browse with mobile the interface is same with desktop so how can i achieved this? any idea?

Hengky Zhang
on 2/11/15, 11:06 PM
0
José DESGRIS
On 2/11/15, 9:46 AM

Hello,

Can you say why you want to remove the mobile version ?

Please note that today, 60% of internet users do navigate with their mobile and also that, once you have resized your images, everything works fine with mobile website in Odoo.

Best regards,

José

yeah you are right but sometimes we want to keep the view same with desktop, any idea dude?

Hengky Zhang
on 2/11/15, 11:07 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 2/11/15, 3:16 AM
Seen: 986 times
Last updated: 3/16/15, 8:10 AM