← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~agilebg/hr-timesheet/fix-hr_attendance_analysis-reference-is-not-defined into lp:hr-timesheet

 

Lorenzo Battistini - Agile BG has proposed merging lp:~agilebg/hr-timesheet/fix-hr_attendance_analysis-reference-is-not-defined into lp:hr-timesheet.

Requested reviews:
  HR Core Editors (hr-core-editors)

For more details, see:
https://code.launchpad.net/~agilebg/hr-timesheet/fix-hr_attendance_analysis-reference-is-not-defined/+merge/221250

[FIX]
File "/home/elbati/workspace/openerp/progetti/agilebg/git/agilebg/parts/hr-timesheet-7.0/hr_attendance_analysis/wizard/print_calendar_report.py", line 160, in print_calendar
    for calendar_attendance in reference.attendance_ids:
NameError: global name 'reference' is not defined
-- 
https://code.launchpad.net/~agilebg/hr-timesheet/fix-hr_attendance_analysis-reference-is-not-defined/+merge/221250
Your team OpenERP Community Reviewer/Maintainer is subscribed to branch lp:hr-timesheet.
=== modified file 'hr_attendance_analysis/wizard/print_calendar_report.py'
--- hr_attendance_analysis/wizard/print_calendar_report.py	2013-11-19 13:32:00 +0000
+++ hr_attendance_analysis/wizard/print_calendar_report.py	2014-05-28 15:00:11 +0000
@@ -157,7 +157,7 @@
                 if reference_calendar:
                     if reference_calendar.attendance_ids:
                         current_total_due = 0.0
-                        for calendar_attendance in reference.attendance_ids:
+                        for calendar_attendance in reference_calendar.attendance_ids:
                             if ((
                                 not calendar_attendance.dayofweek
                                 or int(calendar_attendance.dayofweek) == current_date.weekday()


Follow ups