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

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
Annuleer
Auteur Beste antwoord

I found it 

self.getSelectedIds()
Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
nov. 22
2854
0
okt. 22
82
2
sep. 21
7614
0
dec. 20
134
0
sep. 20
2604