Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4143 มุมมอง

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

});
}

});
อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I found it 

self.getSelectedIds()
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 22
2847
0
ต.ค. 22
82
How I can inherit from other module JS แก้ไขแล้ว
2
ก.ย. 21
7596
0
ธ.ค. 20
134
0
ก.ย. 20
2598