Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4149 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

I found it 

self.getSelectedIds()
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
lis 22
2851
0
říj 22
82
2
zář 21
7604
0
pro 20
134
0
zář 20
2601