Ajuda

0

How do you get active_ids in Odoo13 JS code

Avatar
hui zhang

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({
.......

});
}

});
Avatar
Descartar
1 Resposta
0
Avatar
hui zhang
Best Answer

I found it 

self.getSelectedIds()
Avatar
Descartar