Odoo Help

Welcome!

This community 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.

1

Embedding an odoo page in an iframe?

By
Paul Grimshaw
on 8/24/15, 9:44 AM 1,083 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)--
2983
| 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>


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

4 follower(s)

Stats

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