Se rendre au contenu
Menu
Cette question a été signalée
8625 Vues

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
Ignorer
Publications associées Réponses Vues Activité
3
déc. 24
4759
2
juin 23
4569
0
mars 22
2469
0
août 21
5143
1
déc. 17
8024