Skip to Content
Menu
This question has been flagged
8657 Rodiniai

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
gruod. 24
4806
2
birž. 23
4609
0
kov. 22
2507
0
rugp. 21
5180
1
gruod. 17
8069