timesheet_task: inconsistency when changing a task's project

Bug #1071199 reported by Stéphane Bidoul (Acsone)
6
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

Changed in c2c-addons:
status: New → Confirmed
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

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

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

Hi,

Merge proposal submitted, let me know your thoughts.

-sbi

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

It's merged.

Thanks !

Guewen

Changed in c2c-addons:
assignee: nobody → Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
status: Confirmed → Fix Released
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

6.1: revision-id: <email address hidden>
7.0: revision-id: <email address hidden>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.