Skip to Content
Menu
This question has been flagged
4 Replies
3798 Views

I am unable to attach Screenshot with it but i hope you are getting what i am trying to say

Avatar
Discard
Best Answer

I also faced the same and here is the scenario. 

I created leaves on my test server and later on I deleted with sql query directly from the postgresql from hr_leave table.
What happens when leave is created, odoo creates an activity for the calendar in mail_activity table. So I deleted leaved from hr_leave table while having ref in  mail_activity table. I cleared activity table and problem solved.

Hope this helps.

  

Avatar
Discard
Author

Hi ! thanks for replying. Can you guide me through this step by step on how exaactly to do it as i have less knowledge about databases and queries. Thank you so much

Ok. First make sure you are doing it on a test database.

1. Run a sql delete query on hr_leaves table. (delete from hr_leave)

2. Now delete from mail activity table. (select * from mail_activity)

But make sure you are doing it in some test database and have no other activities in mail_activity table.

After doing above two steps, create new leaves and you should not face that problem.

There is another point. Check your Technical > Resource > Working Times

Weekends and Global Leaves do not include in Leaves counts.

Best Answer

Hello,

Please check your employee's working hours time and currently log in user Timezone inside user's profile.

Hope it will help you.
Thanks

Avatar
Discard
Related Posts Replies Views Activity
1
Jun 24
694
1
Jul 19
83
1
Jun 19
2139
5
Aug 24
12993
0
Aug 20
2731