Attendance wizard crash with the latest revision

Bug #1069021 reported by Pau Gangonells (Tecnoba)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
school-openerp-module
Fix Committed
Critical
Pereerro

Bug Description

The attendance wizard displays a timezone error message:

Client Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/common/http.py", line 180, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1052, in call_button
    action = self.call_common(req, model, method, args, domain_id, context_id)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 996, in call_common
    return self._call_kw(req, model, method, args, {})
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1010, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/opt/openerp/server/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
    args, kw)
  File "/opt/openerp/server/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/opt/openerp/server/openerp/addons/web/common/http.py", line 608, in send
    raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

Server Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/common/http.py", line 593, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/server/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/server/openerp/addons/school_attendance/school_attendance.py", line 737, in call_wizard_attendance
    seance_tuple = self.name_get(cr, uid, ids, context = context)[0]
  File "/opt/openerp/server/openerp/addons/school_extension/school_extension.py", line 328, in name_get
    local_timezone = pytz.timezone(context.get('tz','Europe/Madrid'))
  File "/usr/lib/python2.7/dist-packages/pytz/__init__.py", line 157, in timezone
    if zone.upper() == 'UTC':
AttributeError: 'bool' object has no attribute 'upper'

Pereerro (pereerro)
Changed in school-base-openerp-module:
status: New → Incomplete
Revision history for this message
Pereerro (pereerro) wrote :

I couldn't catch this bug. Possibles solutions shouldn't work in your case. Please, send information about the context running the server with --debug parameter, 'u' command and then 'p context' command. I fear that the tz info will not be correct.

Pereerro (pereerro)
Changed in school-base-openerp-module:
status: Incomplete → Fix Committed
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.