[stable] [hr_holidays] holiday request python error

Bug #613451 reported by Grzegorz Grzelak (OpenGLOBE.pl)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

I choose Human Resources - New Holidays Request
Then I enter Description, Employee and Contact No.

When I try to save form, select Request or Create Days I get the error message:

Environment Information :
System : Linux-2.6.32-24-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-24-generic
Operating System Version : #38-Ubuntu SMP Mon Jul 5 09:22:14 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : pl_PL.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 5.0.12
Last revision No. & ID :1083 <email address hidden>
Traceback (most recent call last):
  File "/home/gg/openerp/server/bin/netsvc.py", line 247, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/gg/openerp/server/bin/netsvc.py", line 76, in __call__
    return getattr(self, method)(*params)
  File "/home/gg/openerp/server/bin/addons/base_module_record/base_module_record.py", line 38, in execute
    res = super(recording_objects_proxy, self).execute(*args, **argv)
  File "/home/gg/openerp/server/bin/service/web_services.py", line 577, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/home/gg/openerp/server/bin/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/gg/openerp/server/bin/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/gg/openerp/server/bin/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/gg/openerp/server/bin/addons/hr_holidays_request/hr_holidays_request.py", line 100, in create
    return super(hr_holidays, self).create(cr, uid, vals, context=context)
  File "/home/gg/openerp/server/bin/addons/hr_holidays/hr.py", line 160, in create
    id_holiday = super(hr_holidays, self).create(cr, uid, vals, *args, **kwargs)
  File "/home/gg/openerp/server/bin/osv/orm.py", line 2889, in create
    self._validate(cr, user, [id_new], context)
  File "/home/gg/openerp/server/bin/osv/orm.py", line 926, in _validate
    if not fun(self, cr, uid, ids):
  File "/home/gg/openerp/server/bin/addons/hr_holidays/hr.py", line 151, in _check_date
    date_from = time.strptime(rec['date_from'], '%Y-%m-%d %H:%M:%S')
  File "/usr/lib/python2.6/_strptime.py", line 454, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/lib/python2.6/_strptime.py", line 322, in _strptime
    found = format_regex.match(data_string)
TypeError: expected string or buffer

Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Fixed by revision 4446 <email address hidden>.
Thanks.

Changed in openobject-addons:
milestone: none → 5.0.13
status: Confirmed → Fix Released
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.