Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4159 Visualizações

I've added a button to the Tree view, and in the action method I want to get active_ids

ListController.include({

renderButtons: function () {
this._super.apply(this, arguments);
if (this.$buttons) {
this.$buttons.find('.o_export_payslip').click(this.proxy('export_payslip'));
}
},

export_payslip: function () {
var self = this
console.log(this)
self.do_action({
.......

});
}

});
Avatar
Cancelar
Autor Melhor resposta

I found it 

self.getSelectedIds()
Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
nov. 22
2851
0
out. 22
82
2
set. 21
7611
0
dez. 20
134
0
set. 20
2603