openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #13511
[Bug 1023047] [NEW] can't add new work to task if there's already work for a confirm/done timesheet
Public bug reported:
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://bugs.launchpad.net/openobject-addons/+bug/949078 )
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_timesheet.py, inside write function for class project_work:
if line_id.sheet_id.state in ['confirm','done']:
# ignore changes if timesheet is in confirm or done status
continue
I added the lines inside the "for task" just after the line_id null
verification. With this is now working for me.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1023047
Title:
can't add new work to task if there's already work for a confirm/done
timesheet
Status in OpenERP Addons (modules):
New
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://bugs.launchpad.net/openobject-addons/+bug/949078 )
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_timesheet.py, inside write function for class project_work:
if line_id.sheet_id.state in ['confirm','done']:
# ignore changes if timesheet is in confirm or done status
continue
I added the lines inside the "for task" just after the line_id null
verification. With this is now working for me.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1023047/+subscriptions
Follow ups
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Stefan Rijnhart (Therp), 2013-10-03
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: joachim grubelnik, 2013-10-03
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: joachim grubelnik, 2013-10-02
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: joachim grubelnik, 2013-10-02
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: joachim grubelnik, 2013-10-02
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Carlos Almeida, 2013-09-24
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Serge, 2013-08-06
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Leigh Willard, 2013-08-06
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Stefan Rijnhart (Therp), 2013-01-23
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Lara Freeke (Therp), 2013-01-23
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Stefan Rijnhart (Therp), 2013-01-08
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Launchpad Bug Tracker, 2013-01-08
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Holger Brunn (Therp), 2013-01-08
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Launchpad Bug Tracker, 2013-01-08
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Stefan Rijnhart (Therp), 2013-01-07
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Juanjo A, 2012-12-21
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Fabien (Open ERP), 2012-11-12
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Launchpad Bug Tracker, 2012-11-08
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Arnaud Pineux (OpenERP), 2012-11-08
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Arnaud Pineux (OpenERP), 2012-11-07
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Nicolas (OpenERP), 2012-10-26
-
[Bug 1023047] [NEW] can't add new work to task if there's already work for a confirm/done timesheet
From: Launchpad Bug Tracker, 2012-10-26
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Vijaykumar Baladaniya, 2012-09-27
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Vijaykumar Baladaniya, 2012-09-27
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Vijaykumar Baladaniya, 2012-09-25
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Amit Bhavsar (Open ERP), 2012-09-25
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Vijaykumar Baladaniya, 2012-09-24
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Vijaykumar Baladaniya, 2012-09-19
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Laurent Urbain (Alfea), 2012-07-24
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Amit Bhavsar (Open ERP), 2012-07-24
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Javier Castillo, 2012-07-23
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Javier Castillo, 2012-07-19
-
[Bug 1023047] Re: can't add new work to task if there's already work for a confirm/done timesheet
From: Amit Parik (OpenERP), 2012-07-14
-
[Bug 1023047] [NEW] can't add new work to task if there's already work for a confirm/done timesheet
From: Javier Castillo, 2012-07-10
References