← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 702086] Re: [6.0 RC2] Error when enter in the int search field literal symbol

 

Hello Paulius Sladkevičius,

It's fixed in Trunk web-client. Please update your code.
Revision Info:
4351 cpa@xxxxxxxxxxx-20110117112708-9m1sjht9y0ovr7i6

Thanks.

** Changed in: openobject-client-web
       Status: In Progress => Fix Released

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

Title:
  [6.0 RC2] Error when enter in the int search field literal symbol

Status in OpenObject Web Client:
  Fix Released

Bug description:
  I got error when I did mistake and entered word to the search int
  field ("Left parent") from the "Sale>Configure>Address Book>Partner
  Categories" list. Now I see usability problem, that I can't know/see
  that int or float field is not for strings.

  Traceback (most recent call last):
    File "/home/komsas/openerp/openerp6/openobject-server/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/komsas/openerp/openerp6/openobject-server/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/home/komsas/openerp/openerp6/openobject-server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/komsas/openerp/openerp6/openobject-server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/komsas/openerp/openerp6/openobject-server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/komsas/openerp/openerp6/openobject-server/bin/osv/orm.py", line 1733, in search
      return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
    File "/home/komsas/openerp/openerp6/openobject-server/bin/osv/orm.py", line 3953, in _search
      query = self._where_calc(cr, user, args, context=context)
    File "/home/komsas/openerp/openerp6/openobject-server/bin/osv/orm.py", line 3808, in _where_calc
      where_clause, where_params = e.to_sql()
    File "/home/komsas/openerp/openerp6/openobject-server/bin/osv/expression.py", line 487, in to_sql
      q, p = self.__leaf_to_sql(e, table)
    File "/home/komsas/openerp/openerp6/openobject-server/bin/osv/expression.py", line 471, in __leaf_to_sql
      params = table._columns[left]._symbol_set[1](right)
    File "/home/komsas/openerp/openerp6/openobject-server/bin/osv/fields.py", line 129, in <lambda>
      _symbol_f = lambda x: int(x or 0)
  ValueError: invalid literal for int() with base 10: 'test'





References