Skip to Content
मेन्यू
This question has been flagged
8672 Views

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
Discard
Related Posts Replies Views Activity
3
दिस॰ 24
4824
2
जून 23
4628
0
मार्च 22
2520
0
अग॰ 21
5190
1
दिस॰ 17
8076