I tried a lot of ways to do connection.But i didn't any solution for that. Can you help me out? Thanks in Advance.
Please note my version is odoo 11.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I tried a lot of ways to do connection.But i didn't any solution for that. Can you help me out? Thanks in Advance.
Please note my version is odoo 11.
There is a function in hr_holidays.py which returns all remaining leaves according to leave type.
ie,
leave_type.get_days(employee_id.id)
here leave type is type object or "hr.holidays.status". which returns result of dict containing
leave_type id as key and values ,[virtual_remaining_leaves,max_leaves,remaining_leaves,leaves_taken]
I can't connect hr.holidays.status and hr.employee. Please give me a solution
env['modelname'].get_days()
Hi,
By remaining Field, you mean the remaining leaves of an Employee?
If so, by default itself the remaining leaves of an employee are shown in their form.
Thanks
@
Thanks for answering.
I want to show remaing all leaves in a tab in the employee directory
https://prnt.sc/kqwqht
This image wil help you to understand.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 19
|
2649 | ||
|
0
Dec 24
|
37 | ||
|
1
Mar 24
|
837 | ||
|
2
Oct 23
|
513 | ||
|
9
Jun 23
|
11130 |