Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4192 Представления

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()
Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
нояб. 22
2869
0
окт. 22
82
2
сент. 21
7636
0
дек. 20
134
0
сент. 20
2619