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

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
kvě 25
2682
2
kvě 25
6110
1
bře 25
1798
4
bře 25
4663
3
úno 25
5745