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

I created a button in xml






in JS i gave like

ListController.include({
renderButtons: function($node) {
this._super.apply(this, arguments);
if (this.$buttons) {
this.$buttons.find('.oe_edit_button').click(this.proxy('edit_def'));
}
},

edit_def: function () {
if (this.mode === 'readonly') {
            this._setMode('edit');
            this.controlPanelProps.view.arch.attrs['editable']='top';
}
}
});

but when i click the button mode is set to edit and i created an attrs editable='top'

but its not working

can some one help me out with it

Thanks

形象
丢弃
相关帖文 回复 查看 活动
1
10月 23
1630
2
7月 19
9022
6
10月 24
50373
2
5月 24
2529
0
12月 23
1896