Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
8604 Tampilan

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Des 24
4739
2
Jun 23
4548
0
Mar 22
2449
0
Agu 21
5123
1
Des 17
8016