can't add new work to task if there's already work for a confirm/done timesheet
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP R&D Addons Team 1 | |||
OpenERP Community Backports (Addons) | Status tracked in 7.0 | |||||
7.0 |
Fix Released
|
Undecided
|
Holger Brunn (Therp) | |||
Therp Backports (Deprecated) | Status tracked in Addons-6.1 | |||||
Addons-6.1 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
OpenERP version is 6.1.1, with modules hr_timesheet_sheet and project_timesheet.
Steps to reproduce:
1) Create a timesheet for an employee
2) Create a task and log some work, timesheet lines will be created (to have this working I had to apply the patch described in https:/
3) Submit the timesheet for approval
4) Try to log more work on the task
Observed result: I'm getting an error message that says that a timesheet line cannot be updated if the timesheet is confirm/done.
Expected result: User should be able to add more work and new timesheet lines should be created, not updating the old ones that already belong to a confirm/done timesheet.
Possible fix:
To fix this issue I added this code in file project_
if line_id.
# ignore changes if timesheet is in confirm or done status
I added the lines inside the "for task" just after the line_id null verification. With this is now working for me.
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 57 lines (+9/-9)3 files modifiedanalytic/analytic.py (+6/-1)
project/project.py (+1/-5)
project_timesheet/project_timesheet.py (+2/-3)
- OpenERP Core Team: Pending requested
-
Diff: 13 lines (+3/-1)1 file modifiedproject_timesheet/project_timesheet.py (+3/-1)
- Stefan Rijnhart (Opener) (community): Approve
-
Diff: 26 lines (+4/-2)2 files modifiedhr_timesheet_sheet/hr_timesheet_sheet.py (+1/-1)
project_timesheet/project_timesheet.py (+3/-1)
- Rifakat Husen (OpenERP) (community): Approve
- OpenERP Core Team: Pending requested
-
Diff: 13 lines (+3/-1)1 file modifiedproject_timesheet/project_timesheet.py (+3/-1)
- Stefan Rijnhart (Opener): Approve
-
Diff: 13 lines (+3/-1)1 file modifiedproject_timesheet/project_timesheet.py (+3/-1)
Changed in openobject-addons: | |
status: | Invalid → New |
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1) |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
affects: | openobject-addons → openerp-web |
Changed in openerp-web: | |
assignee: | OpenERP R&D Addons Team 1 (openerp-dev-addons1) → nobody |
assignee: | nobody → Vijaykumar Baladaniya (vba) |
assignee: | Vijaykumar Baladaniya (vba) → nobody |
Changed in openerp-web: | |
assignee: | nobody → OpenERP R&D Web Team (openerp-dev-web) |
Changed in therp-backports: | |
milestone: | none → 7.0-maintenance |
milestone: | 7.0-maintenance → 6.1-maintenance |
Changed in openobject-addons: | |
status: | Invalid → Fix Committed |
Changed in therp-backports: | |
status: | New → Fix Released |
Changed in therp-backports: | |
milestone: | 6.1-maintenance → 7.0-maintenance |
Changed in ocb-addons: | |
status: | New → Fix Committed |
no longer affects: | therp-backports/addons-7.0 |
tags: | added: project timesheet |
Hello Javier,
I do not agree with that we have to allow new timesheet line entry for the same period of old timesheet.
If we have to allow more then one timesheet for same period,then we can not manage then properly as well as allow to create new timesheet line (as you said) which will create a new timesheet. So for then same period more then one time doesn't exist (for one user).
So You if you want to manage this thing, First you have to set your timesheet(already created) on draft state. Edit your timesheet or enter the task work entry. Then again confirmed you timesheet . This is simple flow and doesn't create any misleading.
That's we can not consider this point as a "vaild", So converting this to question.
Hope this helps.
Thanks for understanding!