تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4092 أدوات العرض

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
نوفمبر 22
2812
0
أكتوبر 22
82
2
سبتمبر 21
7554
0
ديسمبر 20
134
0
سبتمبر 20
2563