Can I use the contract start date as condition in salary rules? To calculate the end of service of employee
So if the contract is less than 1 years this rules will appear?
The rule will be like
Today - contract.start_date > 1 year
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Can I use the contract start date as condition in salary rules? To calculate the end of service of employee
So if the contract is less than 1 years this rules will appear?
The rule will be like
Today - contract.start_date > 1 year
Thanks
Hi,
Yes, you can use the contract start date as a condition in salary rules to calculate the end of service of an employee.You would typically achieve this using Python code within the salary rule.
time_difference = datetime.now() - contract.start_date
result = time_difference > relativedelta(years=1)
Hope it helps
Thank you.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
0
जून 20
|
4278 | |||
|
0
मार्च 15
|
4441 | |||
|
0
मई 23
|
4335 | |||
|
1
फ़र॰ 20
|
4419 | |||
|
1
मार्च 18
|
5048 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.