Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2407 Zobrazení

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
říj 23
1585
2
čvc 19
8950
6
říj 24
50260
2
kvě 24
2430
0
pro 23
1870