Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

I want to add an Iframe in Openerp with a dynamic 'src'

By
Hussain Nagri
on 11/10/13, 5:59 AM 2,103 views

Hello, I want to add an Iframe in OpenERP so that I can show a different website in OpenERP , but I want to pass dynamic values along with the url so that I can collect values with GET method on other end. now since this will be in xml view file I cant imagine how to do this. any pointers ?

Part of the answer here : https://www.odoo.com/fr_FR/forum/help-1/question/adding-i-frame-in-openerp-34242

Mind & Go, Mind And Go
on 12/11/14, 6:01 PM

Did you succeed in doing this?

Mind & Go, Mind And Go
on 12/11/14, 6:02 PM

Related but not answered question : https://www.odoo.com/forum/help-1/question/how-to-insert-properties-of-the-data-model-in-the-xml-view-10529

Mind & Go, Mind And Go
on 12/11/14, 6:10 PM
1
Manuel Pérez
On 1/19/15, 1:38 PM

Hi Hussain,

I extended de product class to include a youtube URL field. The way I made it dynamic in the extended view was to use the t-att directive in QWeb:

<iframe allowfullscreen="allowfullscreen" frameborder="0" t-att-src="product.url_youtube"></iframe>

Hope this helps. Please vote my answer if it was useful to you.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 11/10/13, 5:59 AM
Seen: 2103 times
Last updated: 3/24/16, 9:34 AM