Odoo Help


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.


How to create a custom widget for youtube videos?

on 9/22/15, 11:53 AM 847 views

I am trying to make a widget for playing youtubr videos.

I make a template and a js file which contents are given below

<?xml version="1.0" encoding="UTF-8"?>

<templates id="template" xml:space="preserve">

<t t-name="youtube">

<div><t t-raw="widget.embeded" /></div>



js file

openerp.resource = function (openerp)


openerp.web.form.widgets.add('youtube', 'openerp.resource.Youtubewidget');

openerp.resource.Youtubewidget = openerp.web.Widget.extend(


template : "youtube",

init: function (view, code) {

this._super(view, code);




I dont know what was to do next. Please help me?

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

1 follower(s)


Asked: 9/22/15, 11:53 AM
Seen: 847 times
Last updated: 9/22/15, 11:53 AM