This question has been flagged
3 Replies
4265 Views

hi,

I want to add item to menu and when I click on it, I want to show some read-only html code (see below) and show it on full page and nothing else. I dont want save or edit buttons. Can anyone suggest how to create such a action menu and view ?

form string="Map" create="false" delete="false" editable="false">
<field name="map" widget="html"/>
</form>
Avatar
Discard

You mean like showing an static html page without edition of the html or anything? Form views are not intended for it because it will need to select a record for display. Complete your idea with more details to provide you a proper solution

Best Answer

Like by using an IFRAME?


<?xml version="1.0"?> 
<form string="Embedded Webpage" version="7.0" edit="false" create="false">
<div style="position:absolute; left:0; top:0; width:100%; height:100%;">
<iframe src="http://www.playkeepout.com/" width="100%" height="100%" marginwidth="0" marginheight="0" frameborder="no" scrolling="no" style="border-width:0px;">
</iframe>
</div>
</form>
Avatar
Discard
Best Answer

Updated for v12:

Window Action:

Target Window: Inline Edit

Form View:

<form string="Embedded Webpage" version="7.0" edit="false" create="false"> 
<div class="embed-responsive embed-responsive-4by3"> 
<iframe class="embed-responsive-item"
src="https://www.odoo.com/documentation" >
</iframe>
</div>    
</form>
Avatar
Discard