Skip to Content
Menu
This question has been flagged
1 Reply
3232 Views

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
Discard
Author Best Answer

I found it 

self.getSelectedIds()
Avatar
Discard
Related Posts Replies Views Activity
1
Nov 22
2123
0
Oct 22
82
2
Sep 21
6653
0
Dec 20
134
0
Sep 20
1785