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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
4
de maig 25
|
2666 | ||
|
2
de maig 25
|
6074 | ||
|
1
de març 25
|
1783 | ||
|
4
de març 25
|
4646 | ||
|
3
de febr. 25
|
5681 |