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.
thanks dear,
it dose work,
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
0
Jun 20
|
3498 | ||
|
0
Mar 15
|
3669 | ||
|
0
Mei 23
|
3445 | ||
|
1
Feb 20
|
3704 | ||
|
1
Mar 18
|
4363 |