~school-dev-team/school-base-openerp-module/school-openerp-v2.0

« back to all changes in this revision

Viewing changes to school_reports/detall_faltes_per_participacio.py

  • Committer: pereerro
  • Date: 2013-12-13 21:45:18 UTC
  • Revision ID: pereerro-20131213214518-v0abcmnepp12t7jx
[REF] More refactoring in reports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from lxml import etree
29
29
from report.interface import report_rml
30
30
from report.interface import toxml
31
 
from comu_resum_faltes import get_part_data,_DISCARD_ABSENCES_SAME_TIME_CONTEXT_KEY
32
31
import pytz
33
32
 
34
33
#FIXME: we should use toxml
90
89
        def passa_a_hores(td):
91
90
            return (td.seconds + td.days * 24 * 3600)/3600
92
91
 
93
 
        context2=copy.deepcopy(context)
94
 
        context2[_DISCARD_ABSENCES_SAME_TIME_CONTEXT_KEY]=True
95
 
        
96
92
        obj_part=pool.get('groups.participation')
97
93
        part_seances=obj_part.get_seances(cr, uid, part_ids, datetime_from=datetime_from, datetime_to=datetime_to )
98
94