Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4186 Visualizzazioni

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
Abbandona
Autore Risposta migliore

I found it 

self.getSelectedIds()
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
nov 22
2866
0
ott 22
82
2
set 21
7629
0
dic 20
134
0
set 20
2615