It is possible to import attendances for same day at same time as previous data otherwise not
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP R&D Addons Team 3 |
Bug Description
I have tried to get importing attendances to work with no success however during that process I noticed that even if importing new attendances for new dates fails (without any error) it is possible to import new attendances for the days that already have attendance data if the sign in and sign out times are same as for previous data (see screenshot).
So it seems that something in validity checks of importing attendances fails because it is possible to import invalid data but not valid data.
Edit:
Found out why I couldn't import correct data previously but it didn't prevent doing double import for same data.
If you want to get test this first import this file:
"action"
"Sign In","2013-09-16 10:35:17",1
"Sign Out","2013-09-16 11:35:17",1
which imports the data as it should (my problem earlier was that as in exported file the lines are reversed I copied syntax there but couldn't import data) after this import this file:
"action"
"Sign Out","2013-09-16 11:35:17",1
"Sign In","2013-09-16 10:35:17",1
And you have a double sign in sign out for the same day and time and OpenERP doesn't give any error even if it should.
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 27 lines (+5/-1)2 files modifiedhr_attendance/hr_attendance.py (+4/-0)
hr_attendance/test/attendance_process.yml (+1/-1)
affects: | openobject-library → openobject-addons |
tags: | added: attendance hr |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Hello,,
I have checked this issue with latest trunk as well with 7.0, but I am not getting any issue with this. Would you please check it again and correct me with more information if I am wrong.
Thanks & waiting for your answer.