Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4136 Widoki

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

});
}

});
Awatar
Odrzuć
Autor Najlepsza odpowiedź

I found it 

self.getSelectedIds()
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 22
2846
0
paź 22
82
2
wrz 21
7585
0
gru 20
134
0
wrz 20
2595