Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2398 Visualizações

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
out. 23
1583
2
jul. 19
8947
6
out. 24
50256
2
mai. 24
2416
0
dez. 23
1864