Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
8622 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
pro 24
4753
2
čvn 23
4563
0
bře 22
2460
0
srp 21
5138
1
pro 17
8023