hr_attendance_analysis - many contracts for same employee
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HR - Timesheet Management |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Prerequisite: install module hr_attendance_
First case :
1/ Create a contract for a user with attendance (do not fill trial period) and set end date
2/ Create a contract for the same user (do not fill trial period) and set other start date and end date (not in the first period)
3/ It is not possible to save this new contract
Second case :
1/ Create a contract for a user with attendance (do not fill trial period) and set end date
2/ In the "more" menu choose the duplicate action
3/ It is not possible to create a duplicate,it is normal because there is the same period than the original, so I propose to set start date with the biggest end date. If the biggest end date is False, do nothing.
Third case :
The test to get active contract returns contract without trial period. A contract without trial period is not always an active contract.
Related branches
- Stéphane Bidoul (Acsone) (community): Approve (code review)
- Guewen Baconnier @ Camptocamp: Approve
-
Diff: 92 lines (+61/-4)3 files modifiedhr_attendance_analysis/__init__.py (+1/-0)
hr_attendance_analysis/hr_attendance.py (+4/-4)
hr_attendance_analysis/hr_contract.py (+56/-0)
Changed in hr-timesheet: | |
status: | New → Fix Released |