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>
</t>
</templates>
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?