コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4154 ビュー

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
2851
0
10月 22
82
2
9月 21
7605
0
12月 20
134
0
9月 20
2601