跳至内容
菜单
此问题已终结
5246 查看

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?

形象
丢弃
相关帖文 回复 查看 活动
0
3月 21
3757
2
2月 23
12485
0
10月 20
7230
0
5月 17
8680
1
6月 16
10166