Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
36568 Vizualizări

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.

Imagine profil
Abandonează

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.

Cel mai bun răspuns

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:




Imagine profil
Abandonează

How to set up the src dynamically?

Cel mai bun răspuns

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.

Imagine profil
Abandonează
Autor

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.

Related Posts Răspunsuri Vizualizări Activitate
2
iun. 24
30236
3
mai 24
2877
3
dec. 23
18208
0
dec. 22
2000
2
dec. 22
3782