Skip to Content
Menu
This question has been flagged
1 Atsakyti
4139 Rodiniai

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({
.......

});
}

});
Portretas
Atmesti
Autorius Best Answer

I found it 

self.getSelectedIds()
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
lapkr. 22
2847
0
spal. 22
82
2
rugs. 21
7593
0
gruod. 20
134
0
rugs. 20
2597