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

i want to pass from a normal form data to the report action

hr_holidays.action_report_holidayssummary ..

more then 1 employee

f
@api.multi
def print_report(self):
self.ensure_one()
[data] = self.read()
data['emp'] = self.env.context.get('active_ids', [])
employees = self.env['hr.employee'].browse(data['emp'])
datas = {
'ids': [],
'model': 'hr.employee',
'form': data
}

return self.env.ref('hr_holidays.action_report_holidayssummary').report_action(employees, data=datas)


it's just take one employee

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
ديسمبر 24
4751
2
يونيو 23
4562
0
مارس 22
2459
0
أغسطس 21
5137
1
ديسمبر 17
8023