Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
36556 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ

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.

Câu trả lời hay nhấ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:




Ảnh đại diện
Huỷ bỏ

How to set up the src dynamically?

Câu trả lời hay nhấ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.

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 6 24
30145
3
thg 5 24
2870
3
thg 12 23
18200
0
thg 12 22
1994
2
thg 12 22
3773