跳至內容
選單
此問題已被標幟
8591 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
12月 24
4721
2
6月 23
4535
0
3月 22
2444
0
8月 21
5103
1
12月 17
8014