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.
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="t-att-class">"navbar navbar-inverse %s" % (request.params.get('embed') and "hidden")</attribute>
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
|Asked: 8/24/15, 9:44 AM|
|Seen: 1083 times|
|Last updated: 4/9/16, 8:04 AM|