Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2406 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 23
1585
2
ก.ค. 19
8950
Add Custom Button To List View Header แก้ไขแล้ว
6
ต.ค. 24
50260
2
พ.ค. 24
2428
0
ธ.ค. 23
1870