Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2422 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
okt. 23
1605
2
jul. 19
8975
6
okt. 24
50283
2
mei 24
2487
0
dec. 23
1878