You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in policy assignment there is a function called _get_months_passed that says if current_date.year > from_date.year:
months_passed = (12 - from_date.month) + current_date.month
well if from_date is 5 years ago for example 2018 . this formula is not working you should add all months in between 2018 and the current year .
PS: an employee can have a date of joining in 2018 and while assigning hits leave policy today I can select date of joining as from_date . but while allocating leaves for previous months , this function is not working if the gap is greater than 2 years .
Module
HR
Version
version-14
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Information about bug
in policy assignment there is a function called _get_months_passed that says if current_date.year > from_date.year:
months_passed = (12 - from_date.month) + current_date.month
well if from_date is 5 years ago for example 2018 . this formula is not working you should add all months in between 2018 and the current year .
PS: an employee can have a date of joining in 2018 and while assigning hits leave policy today I can select date of joining as from_date . but while allocating leaves for previous months , this function is not working if the gap is greater than 2 years .
Module
HR
Version
version-14
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: