This question has been flagged
3 Replies
14553 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.

Avatar
Discard

Use target=fullscreen on the action that launches your view

Best Answer

Set the style of the iframe to hide the top X pixels like this:

position: relative; top: -100px;
Avatar
Discard
Best Answer

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>


Avatar
Discard
Best Answer

You have to do this with a work around you can choose from what colleagues suggested above or Kinda Like :

- Via css : you can make the iframe Position - 100PX  so the menu would be hidden , or place some box/block to be fixed with the same dimensions as the menu  of Odoo

i dont recommend you to edit this in odoo itself cuz this will Hide  the menu from the entire System , and i recommend you to control this via your iframe except you are aware of doing this .

Regards ,

Avatar
Discard