跳至内容
菜单
此问题已终结
1 回复
4155 查看

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
7606
0
12月 20
134
0
9月 20
2601