Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
5250 Widoki

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?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
mar 21
3758
2
lut 23
12485
0
paź 20
7231
0
maj 17
8681
1
cze 16
10167