hr_timesheet_sheet's can overlap by one day

Bug #887553 reported by Stéphane Bidoul (Acsone)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

The system allows timesheets to overlap by one day.

How to reproduce: install module hr_timesheet_sheet.
I repdroduced with 6.0 but as I read the code, the bug should be present in trunk too.

- create a timesheet from 7/11/2011 to 13/11/2011
- create a timesheet from 12/11/2011 to 19/11/2011 -> the system produces an error about overlapping timesheet; this is correct.
- create a timesheet from 13/11/2011 to 19/11/2011 -> no error, this is incorrect, since the timesheet overlaps with the first one on 13/11/2011

A proposed patch against 6.0 is attached.

-sbi

Related branches

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello Stéphane Bidoul,

Thanks for reporting and contributing.
The solution of this bug is applied in branch lp:~openerp-dev/openobject-addons/trunk-bug-887553-bde
with following Revision ID and Number:

Revision ID : <email address hidden>
Revision Number : 5538

The solution will be merged in main addons soon.

Thanks & Regards,
Devnani Bharat R.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Thibault Delavallée (OpenERP) (tde-openerp) wrote :

 Merged into lp:openobject-addons at revision 5546

Changed in openobject-addons:
status: Fix Committed → Fix Released
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.