timesheet_task: inconsistency when changing a task's project
Bug #1071199 reported by
Stéphane Bidoul (Acsone)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Camptocamp Addons |
Fix Released
|
Undecided
|
Guewen Baconnier @ Camptocamp |
Bug Description
Hello,
In OpenERP, it possible to change a task's project.
Using the module timesheet_task, timesheets have a reference to both the task and the project (via the analytic account).
When the user changes the task's project after timesheets have been entered on the task, the existing timesheet still refer to the previous analytic account.
What should be the proper behaviour:
1. forbid the user to change the project on a task when timesheet exists
2. or update all existing timesheets on the task to refer to the new project
3. something else?
I have a preference for option 2.
What do you think?
-sbi
Related branches
lp:~sbi/c2c-addons/6.1-bug1071199
- Guewen Baconnier @ Camptocamp: Approve
-
Diff: 20 lines (+11/-0)1 file modifiedtimesheet_task/project_task.py (+11/-0)
Changed in c2c-addons: | |
status: | New → Confirmed |
To post a comment you must log in.
Hello,
Thanks for your report.
According to your description, this can lead to inconsistencies between projects and timesheets, so I confirm this bug.
The most straightforward fix would be the first one, but I prefer the your proposition 2 too to not restrict the change of the project.
Does anyone see a good reason not to choose option 2 ?
Guewen