Is possible to have the start date field of the accrual period in time off allocations form creation to be the contract start date of the employee in the BY EMPLOYEE mode automatically .
Any help is appreciated.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Is possible to have the start date field of the accrual period in time off allocations form creation to be the contract start date of the employee in the BY EMPLOYEE mode automatically .
Any help is appreciated.
Hello Jainesh
Thank you for the solution , i just want to know where i must put this code knowing that i'm a beginner in Odoo .
Hello Garaz
Yes it is possible
start_date = fields.Date(string="Start Date")
contract_start_date = fields.Date(string="Contact start Date", compute="compute_date")
@api.depends('start_date')
def compute_date(self):
self.employee_start_date = self.start_date
I hope this code is helpful for you.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Mar 23
|
3906 | ||
|
1
May 23
|
1829 | ||
|
2
Mar 23
|
464 | ||
|
0
Nov 22
|
1432 | ||
|
2
Aug 20
|
3573 |