← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 857069] [NEW] [TRUNK]:hr_attendance:can not open the attendance view

 

Public bug reported:

Steps to reproduce the trackback :

Installed hr_ attendance module and open the view Human Resource ->
Attendances ->Attendances.

Traceback (most recent call last):
  File "/home/amit/OpenERP/server/trunk/openerp/osv/osv.py", line 118, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/amit/OpenERP/server/trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/amit/OpenERP/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/amit/OpenERP/server/trunk/openerp/osv/orm.py", line 2112, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/home/amit/OpenERP/server/trunk/openerp/osv/orm.py", line 4570, in _search
    query = self._where_calc(cr, user, args, context=context)
  File "/home/amit/OpenERP/server/trunk/openerp/osv/orm.py", line 4425, in _where_calc
    where_clause, where_params = e.to_sql()
  File "/home/amit/OpenERP/server/trunk/openerp/osv/expression.py", line 786, in to_sql
    q, p = self.__leaf_to_sql(e, table)
  File "/home/amit/OpenERP/server/trunk/openerp/osv/expression.py", line 774, in __leaf_to_sql
    if isinstance(params, basestring):
UnboundLocalError: local variable 'params' referenced before assignment

** Affects: openobject-addons
     Importance: Undecided
         Status: New

** Description changed:

  Steps to reproduce the trackback :
  
  Installed hr_ attendance module and open the view Human Resource ->
  Attendances ->Attendances.
+ 
+ Traceback (most recent call last):
+   File "/home/amit/OpenERP/server/trunk/openerp/osv/osv.py", line 118, in wrapper
+     return f(self, dbname, *args, **kwargs)
+   File "/home/amit/OpenERP/server/trunk/openerp/osv/osv.py", line 172, in execute
+     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
+   File "/home/amit/OpenERP/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
+     return getattr(object, method)(cr, uid, *args, **kw)
+   File "/home/amit/OpenERP/server/trunk/openerp/osv/orm.py", line 2112, in search
+     return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
+   File "/home/amit/OpenERP/server/trunk/openerp/osv/orm.py", line 4570, in _search
+     query = self._where_calc(cr, user, args, context=context)
+   File "/home/amit/OpenERP/server/trunk/openerp/osv/orm.py", line 4425, in _where_calc
+     where_clause, where_params = e.to_sql()
+   File "/home/amit/OpenERP/server/trunk/openerp/osv/expression.py", line 786, in to_sql
+     q, p = self.__leaf_to_sql(e, table)
+   File "/home/amit/OpenERP/server/trunk/openerp/osv/expression.py", line 774, in __leaf_to_sql
+     if isinstance(params, basestring):
+ UnboundLocalError: local variable 'params' referenced before assignment

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/857069

Title:
  [TRUNK]:hr_attendance:can not open the attendance view

Status in OpenERP Addons (modules):
  New

Bug description:
  Steps to reproduce the trackback :

  Installed hr_ attendance module and open the view Human Resource ->
  Attendances ->Attendances.

  Traceback (most recent call last):
    File "/home/amit/OpenERP/server/trunk/openerp/osv/osv.py", line 118, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/amit/OpenERP/server/trunk/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/amit/OpenERP/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/amit/OpenERP/server/trunk/openerp/osv/orm.py", line 2112, in search
      return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
    File "/home/amit/OpenERP/server/trunk/openerp/osv/orm.py", line 4570, in _search
      query = self._where_calc(cr, user, args, context=context)
    File "/home/amit/OpenERP/server/trunk/openerp/osv/orm.py", line 4425, in _where_calc
      where_clause, where_params = e.to_sql()
    File "/home/amit/OpenERP/server/trunk/openerp/osv/expression.py", line 786, in to_sql
      q, p = self.__leaf_to_sql(e, table)
    File "/home/amit/OpenERP/server/trunk/openerp/osv/expression.py", line 774, in __leaf_to_sql
      if isinstance(params, basestring):
  UnboundLocalError: local variable 'params' referenced before assignment

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/857069/+subscriptions


Follow ups

References