Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4100 Переглядів

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
2816
0
жовт. 22
82
2
вер. 21
7556
0
груд. 20
134
0
вер. 20
2571