openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27737
[Bug 1314589] [NEW] [7.0] Timesheet attendance rev 10019 break sign in sign out
Public bug reported:
Trying to sign in / sign out will raise:
Server Traceback (most recent call last):
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/webclient/addons/web/session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/server/openerp/netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/server/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/server/openerp/osv/osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/server/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/server/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/server/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/addons/hr_timesheet_sheet/hr_timesheet_sheet.py", line 138, in attendance_action_change
return hr_employee.attendance_action_change(cr, uid, employee_ids, context=context)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/addons/hr_attendance/hr_attendance.py", line 166, in attendance_action_change
hr_attendance.create(cr, uid, vals, context=context)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/addons/hr_timesheet_sheet/hr_timesheet_sheet.py", line 487, in create
date=vals.get('name'), context=context)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/addons/hr_timesheet_sheet/hr_timesheet_sheet.py", line 433, in _get_attendance_employee_tz
attendance_dt = datetime.strptime(date, DEFAULT_SERVER_DATETIME_FORMAT)
TypeError: must be string, not None
A patch is attached
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1314589
Title:
[7.0] Timesheet attendance rev 10019 break sign in sign out
Status in OpenERP Addons (modules):
New
Bug description:
Trying to sign in / sign out will raise:
Server Traceback (most recent call last):
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/webclient/addons/web/session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/server/openerp/netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/server/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/server/openerp/osv/osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/server/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/server/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/server/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/addons/hr_timesheet_sheet/hr_timesheet_sheet.py", line 138, in attendance_action_change
return hr_employee.attendance_action_change(cr, uid, employee_ids, context=context)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/addons/hr_attendance/hr_attendance.py", line 166, in attendance_action_change
hr_attendance.create(cr, uid, vals, context=context)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/addons/hr_timesheet_sheet/hr_timesheet_sheet.py", line 487, in create
date=vals.get('name'), context=context)
File "/srv/openerp/instances/openerp_prod_camptocamp/parts/addons/hr_timesheet_sheet/hr_timesheet_sheet.py", line 433, in _get_attendance_employee_tz
attendance_dt = datetime.strptime(date, DEFAULT_SERVER_DATETIME_FORMAT)
TypeError: must be string, not None
A patch is attached
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1314589/+subscriptions
Follow ups
References