Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4144 Lượt xem

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

});
}

});
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

I found it 

self.getSelectedIds()
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 22
2847
0
thg 10 22
82
2
thg 9 21
7598
0
thg 12 20
134
0
thg 9 20
2598