Odoo Help

1

Embedding an odoo page in an iframe?

By
Paul Grimshaw
on 8/24/15, 9:44 AM 1,443 views

We have linked odoo to some internal systems.  We have setup some "popup" panels in our system, to show an iframe view of odoo entities, allowing quick and easy editing of the data.  A typical URL for these popups is http://localhost:8069/web?#id=6103&view_type=form&model=sites.site&menu_id=167&action=227.

Is it possible to "hide" the menu in odoo, simply by using a URL parameter or other technique?  Similar to the google maps URL parameter "embed=true"?

This would enable our popups to appear more seamless.

0

Jérémy Kersten (jke)

--Jérémy Kersten (jke)--
4440
| 3 2 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 8/24/15, 2:39 PM

Hi,

No native function to do it ! 

But you simply do it with a1 inherited view...

Inherit the view web.webclient_bootstrap and add a if to check if get param "embed" is present...


<xpath expr="//nav[@id='oe_main_menu_navbar']" position="attributes">
       <attribute name="class"></attribute>
       <attribute name="t-att-class">"navbar navbar-inverse %s" % (request.params.get('embed') and "hidden")</attribute>
</xpath>


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

4 follower(s)

Stats

Asked: 8/24/15, 9:44 AM
Seen: 1443 times
Last updated: 4/9/16, 8:04 AM