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

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
paź 23
1583
2
lip 19
8949
6
paź 24
50258
2
maj 24
2421
0
gru 23
1868