İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
36071 Görünümler

Hello, I want to add an Iframe in OpenERP so that I can show a different website in OpenERP only and wont have to switch between tabs. How can I do that ?

P.S. : I dont want to create widgets. Just an Iframe in OpenERP.

Avatar
Vazgeç

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.

En İyi Yanıt

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
Vazgeç

How to set up the src dynamically?

En İyi Yanıt

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.

Avatar
Vazgeç
Üretici

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,

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

@Abdelfateh ABDA: I responded to your question.

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Haz 24
22498
3
May 24
2351
3
Ara 23
17883
0
Ara 22
1764
2
Ara 22
3289