Calculation of Days of a Leave Request suspect

Bug #960136 reported by ValdecDev
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

When Requesting Leave and putting in start dates and end dates as follows

Start Date: 26/03/2012 10:00
End Date: 28/03/2012 21:00

on tabbing to leave the end date field, the Number of Days field is populated as 3.00

If the End Date is set as

Start Date: 26/03/2012 10:00
End Date: 28/03/2012 22:00

(one hour later) then the Number of Days field is populated as 4:00 (it adds an extra day if there is a 12 hour difference on time)

This is a low priority as it can be overridden manually in the Number of Days field here but I'm reporting it in case it is a generic datediff function.

Related branches

Revision history for this message
Cristian Salamea (ovnicraft) wrote :

Please can add tell us the version used ?

Regards,

Changed in openerp-web:
status: New → Confirmed
Revision history for this message
ValdecDev (valdec-dev) wrote :

Sorry - I should have put that in for sure ! :)

It's on version 6.1 release and 6.1 trunk

I haven't tried on 6.2 trunk.

Regards,

affects: openerp-web → openobject-addons
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ajay Chauhan(OpenERP) (cha-tinyerp) wrote :

Hello,
it has been fixed lp:~openerp-commiter/openobject-addons/trunk-bug-960136-cha
 name with following revision number & revision id
    Revision no : 6960
    Revision id : <email address hidden>

 It will be available in trunk soon.

Thanks,
Ajay Chauhan

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Cedric Snauwaert (OpenERP) (csn-openerp) wrote :

Hello,

I cannot reproduce this bug on the latest trunk, seems like it has been fixed.

Therefore I'm closing this bug.

Thanks a lot

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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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