Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Adding I frame in OpenERP

Avatar
odoo
1 Comment
Avatar
Discard
Avatar
odoo
-

Hello, my query is how I can call the view from a menu in odoo 11, so with an iframe to place an external url and be able to view it from an odoo tab.

2 Answers
0
Avatar
odoo
Best Answer

Update, for version 15.0 Enterprise:


1. Create new model (or leverage a model no user has create / edit access for)


2. Menu with Window Action: Target Window: Inline Edit; View Mode: Form


3. Form View:




Avatar
Discard
0
Avatar
odoo
Best Answer

Update, for version 11.0 Enterprise:

1. Create new model.

2. Menu with Window Action: Target Window: Inline Edit; View Mode: Form. Tree

3. Form View:

<?xml version="1.0"?> 

 <form string="Embedded Webpage" version="7.0" edit="false" create="false"> 

<center>

 <iframe src="https://www.playkeepout.com" marginwidth="0" marginheight="0" frameborder="no"  style="height: 600px; width: 100%; border-width:0px;"> 

 </iframe>

</center>

 </form>


Update, for version 9.0 Enterprise:


<?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>

--------------------------------------------------------------------------------------------------------


Just add an iframe to the view you want the webpage to appear in:

<?xml version="1.0"?>
    <form string="Embedded Webpage" version="7.0"  edit="false">
        <iframe marginheight="0" marginwidth="0" frameborder = "0" 
                src="http://www.openerp.com" width="100%" height="1000"/>
    </form>

UPDATE:

I don't have the problem you have in Chrome:

image description

Using the exact code above, every link inside the IFRAME updates only the IFRAME.

First, the IFRAME was directed to www.openerp.com

Next, I clicked APPS.

Next, I clicked CRM.

Each time the window did not refresh, just the iframe.

4 Comments
Avatar
Discard
Avatar
odoo
-

this works but have a problem, If I click some link in the iframe it redirects the whole page at that link, I dont want that, if I click on something inside iframe hen it must be loaded inside iframe only not in the whole browser. is their any way to achieve that ? P.S Answer is appreciated,

Avatar
odoo
-

Hussain, in the action choose the appropriate inlineview mode. It will be very confortible. regards

Avatar
odoo
-
Avatar
odoo
-

@Abdelfateh ABDA: I responded to your question.