v6 hr_attendance - time is rounded to hour

Bug #711533 reported by Vadim - Enapps LTD
12
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
6.0
Confirmed
Undecided
Unassigned

Bug Description

The hr_attendance time is rounded by hour, not by minute.

I suggest this fix:

/hr_attendance/report/attendance_by_month.py

line 88

- wh += (dt - ldt).seconds/60/60
+ wh += (float((dt - ldt).seconds)/3600)

Similar issue for the weekly attendance.

Related branches

Revision history for this message
Vadim - Enapps LTD (vadim-enapps) wrote :

/hr_attendance/report/attendance_by_month.py

line 88

- wh += (dt - ldt).seconds/60/60
+ wh += (float((dt - ldt).seconds)/3600)

summary: - v6 hr_attendance - time is rounded to howr
+ v6 hr_attendance - time is rounded to hour
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
Meera Trambadia (OpenERP) (mtr-openerp) wrote :

Hello Vadim,

Its fixed in https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-dev-addons3-mtr1 branch.
Revision ID: mtr@mtr-20110207093621-6r52uwthtmc08wk7
Revision no: 4738

Thank you for your suggestion.

Thanks
mtr

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Action for the weekly attendance report is missing.
we will check and add it on employee form view.

thanks,
mra

Changed in openobject-addons:
status: Fix Committed → Fix Released
Revision history for this message
Vadim - Enapps LTD (vadim-enapps) wrote : RE: [Bug 711533] Re: v6 hr_attendance - time is rounded to hour

@ Mustufa (weekly attendance report is missing)

I didnt check the latest few branched in this regard, but i think the wizzard view for the weekly report was missing too.

Thanks,

Vadim

Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

agree

Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Added missing action to print weekly report of employee timesheet in Addons3 branch.

Changed in openobject-addons:
milestone: none → 6.1
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Missing in Stable 6.0 too branch.

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.