İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4185 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

I found it 

self.getSelectedIds()
Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 22
2865
0
Eki 22
82
2
Eyl 21
7629
0
Ara 20
134
0
Eyl 20
2615