跳至內容
選單
此問題已被標幟
1 回覆
4148 瀏覽次數

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
2850
0
10月 22
82
2
9月 21
7604
0
12月 20
134
0
9月 20
2600