Skip to Content
मेन्यू
This question has been flagged
5311 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>

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

Avatar
Discard
Related Posts Replies Views Activity
0
मार्च 21
3782
2
फ़र॰ 23
12512
0
अक्तू॰ 20
7271
0
मई 17
8697
1
जून 16
10180