Skip to Content
Menú
This question has been flagged
8610 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
3
de des. 24
4743
2
de juny 23
4551
0
de març 22
2453
0
d’ag. 21
5127
1
de des. 17
8019