콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4140 화면

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()
아바타
취소
관련 게시물 답글 화면 활동
1
11월 22
2847
0
10월 22
82
2
9월 21
7593
0
12월 20
134
0
9월 20
2597