Ir al contenido
Menú
Se marcó esta pregunta
2295 Vistas

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
oct 23
1480
2
jul 19
8835
6
oct 24
50059
2
may 24
2239
0
dic 23
1753