Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
749 Tampilan

I have created an approval flow to generate an expense report after the request gets approved. 
But here I'm not getting the request employee Id.
How to get that?


to get the employee_id I wrote this




but it's not working. Please help on this

Avatar
Buang
Jawaban Terbai

Hello

in the key called default_employee_id, you need to pass id of the employee(hr.employee)

but you send  id of user(res.users) and this is wrong because field employee_id is in relation with hr.employee

so you need to call id from object employee_data, not requested_employeee

also, add limit  = 1 in the search method for employee_data



Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
4
Mei 25
2696
2
Mei 25
6126
1
Mar 25
1809
4
Mar 25
4699
3
Feb 25
5770