c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #26130
[Bug 794634] Re: [6.0] Clicking on "my timesheet" always creates a duplicate timesheet for period
Hi Amit,
The error message about overlapping timesheets is normal indeed.
However, in the procedure I described above, when there is already a
timesheet in state 'new' or 'confirmed' (ie any state != 'draft'), the
system creates a new timesheet when clicking "My Timesheet" instead of
showing the existing timesheet. This is disturbing for the user.
I encoutered the problem because I tested with users in the Employee
group. Such users can create timesheets, but such timesheet always stay
in 'new' state (because users must be in the 'Human Resource / User'
group for the timesheet workflow correctly). This is disturbing too.
Best regards,
-sbi
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/794634
Title:
[6.0] Clicking on "my timesheet" always creates a duplicate timesheet
for period
Status in OpenERP Modules (addons):
New
Bug description:
Hi,
When clicking on My Timesheet menu entry, a new timesheet is created,
even if a timesheet already exists for the current week.
How to reproduce:
- openerp 6.0 series with demo data
- login with fbs/fbs
- go to Human Resources / Time Tracking / My Timesheet
- save the new timesheet
- go to Human Resources / Time Tracking / My Timesheet agin
- save the timesheet
- error: Error occurred while validating the field(s) date_from,date_to: You can not have 2 timesheets that overlaps !
Please use the menu 'My Current Timesheet' to avoid this problem.
IMO, this is due to a fact that the query for existing timesheet
filters on (state='draft'). This filter on state should be removed.
Proposed patch attached.
Best regards,
-sbi
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/794634/+subscriptions
References