[PS] Product list view : filter :field stock location give traceback on web-client

Bug #715485 reported by Francois Pietquin (OpenERP) on 2011-02-08
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Status tracked in 6.0
6.0
Low
OpenERP R&D Web Team
Trunk
Low
OpenERP R&D Web Team

Bug Description

I have faced the following traceback when search the stock location field on extended filter in product list view.

Traceback (most recent call last):
  File "/home/tiny/workspace/openobject-client-web/lib/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/home/tiny/workspace/openobject-client-web/lib/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/tiny/workspace/openobject-client-web/openobject/tools/_expose.py", line 182, in func_wrapper
    res = func(*args, **kw)
  File "/home/tiny/workspace/openobject-client-web/openobject/controllers/_root.py", line 87, in default
    return request.handler()
  File "/home/tiny/workspace/openobject-client-web/lib/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/tiny/workspace/openobject-client-web/addons/openerp/controllers/utils.py", line 112, in wrapper
    return fn(*args, **kw)
  File "/home/tiny/workspace/openobject-client-web/openobject/tools/_expose.py", line 182, in func_wrapper
    res = func(*args, **kw)
  File "/home/tiny/workspace/openobject-client-web/addons/openerp/controllers/search.py", line 107, in eval_domain_and_context
    params, data = TinyDict.split(kw)
  File "/home/tiny/workspace/openobject-client-web/addons/openerp/utils/utils.py", line 178, in split
    return _make_dict(params, True), _make_dict(data, False)
  File "/home/tiny/workspace/openobject-client-web/addons/openerp/utils/utils.py", line 80, in _make_dict
    return make_dict_internal(data, is_params, set())
  File "/home/tiny/workspace/openobject-client-web/addons/openerp/utils/utils.py", line 75, in make_dict_internal
    res[k] = make_dict_internal(v, is_params and isinstance(v, TinyDict), previous_dict_ids)
  File "/home/tiny/workspace/openobject-client-web/addons/openerp/utils/utils.py", line 75, in make_dict_internal
    res[k] = make_dict_internal(v, is_params and isinstance(v, TinyDict), previous_dict_ids)
  File "/home/tiny/workspace/openobject-client-web/addons/openerp/utils/utils.py", line 41, in make_dict_internal
    raise ValueError("Recursive dictionary detected, _make_dict does not handle recursive dictionaries.")
ValueError: Recursive dictionary detected, _make_dict does not handle recursive dictionaries.

Related branches

Amit Parik (amit-parik) wrote :

Hello,

This problem has been solved by putting widget="selection" on location_id field in search view.
Then the web and gtk both will have the same behavior.

Thanks.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Low
status: New → Confirmed
Rucha (Open ERP) (rpa-openerp) wrote :

Hello Amit,
Putting widget="selection" for the field is not a good solution to make it working same in both gtk and web,
Probably there is a problem in web-client,
It crashes with following traceback when I search for any location in web-client:

09/Feb/2011:14:50:52] HTTP
Request Headers:
  REFERER: http://localhost:8080/openerp/menu?active=73
  Content-Length: 889
  ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  USER-AGENT: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
  CONNECTION: keep-alive
  COOKIE: session_id=a984ebbb12568c7a5cb5d08846b9e84e9ee29daf; terp_db=latest; terp_user=admin
  Remote-Addr: 127.0.0.1
  PRAGMA: no-cache
  HOST: localhost:8080
  CACHE-CONTROL: no-cache
  ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  ACCEPT-LANGUAGE: en-us,en;q=0.5
  Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  ACCEPT-ENCODING: gzip,deflate
  KEEP-ALIVE: 115
[09/Feb/2011:14:50:52] HTTP Traceback (most recent call last):
  File "/home/rpa/projects/webclient/trunk/lib/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/home/rpa/projects/webclient/trunk/lib/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/rpa/projects/webclient/trunk/openobject/tools/_expose.py", line 182, in func_wrapper
    res = func(*args, **kw)
  File "/home/rpa/projects/webclient/trunk/openobject/controllers/_root.py", line 87, in default
    return request.handler()
  File "/home/rpa/projects/webclient/trunk/lib/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/rpa/projects/webclient/trunk/addons/openerp/controllers/utils.py", line 112, in wrapper
    return fn(*args, **kw)
  File "/home/rpa/projects/webclient/trunk/openobject/tools/_expose.py", line 182, in func_wrapper
    res = func(*args, **kw)
  File "/home/rpa/projects/webclient/trunk/addons/openerp/controllers/search.py", line 107, in eval_domain_and_context
    params, data = TinyDict.split(kw)
  File "/home/rpa/projects/webclient/trunk/addons/openerp/utils/utils.py", line 178, in split
    return _make_dict(params, True), _make_dict(data, False)
  File "/home/rpa/projects/webclient/trunk/addons/openerp/utils/utils.py", line 80, in _make_dict
    return make_dict_internal(data, is_params, set())
  File "/home/rpa/projects/webclient/trunk/addons/openerp/utils/utils.py", line 75, in make_dict_internal
    res[k] = make_dict_internal(v, is_params and isinstance(v, TinyDict), previous_dict_ids)
  File "/home/rpa/projects/webclient/trunk/addons/openerp/utils/utils.py", line 75, in make_dict_internal
    res[k] = make_dict_internal(v, is_params and isinstance(v, TinyDict), previous_dict_ids)
  File "/home/rpa/projects/webclient/trunk/addons/openerp/utils/utils.py", line 41, in make_dict_internal
    raise ValueError("Recursive dictionary detected, _make_dict does not handle recursive dictionaries.")
ValueError: Recursive dictionary detected, _make_dict does not handle recursive dictionaries.

Can you please check it again,
Thanks

Changed in openobject-addons:
status: Confirmed → Invalid
Amit Parik (amit-parik) on 2011-02-10
affects: openobject-addons → openobject-client-web
Changed in openobject-client-web:
importance: Low → Undecided
assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2) → OpenERP SA's Web Client R&D (openerp-dev-web)
importance: Undecided → Low
status: Invalid → Confirmed
summary: - [PS] Product list view : filter : stock location
+ [PS] Product list view : filter :field stock location give traceback on
+ web-client
Amit Parik (amit-parik) on 2011-02-10
description: updated
Changed in openobject-client-web:
status: Confirmed → In Progress
Changed in openobject-client-web:
status: In Progress → Fix Committed
Sananaz (Open ERP) (sma-tiny) wrote :

Hello Francois Pietquin (OpenERP) ,

The fix for web-client has been committed to lp:~openerp-dev/openobject-client-web/trunk-bug-715485-sma
with the following revision.
Revision-info:
4593 <email address hidden>

Soon it will be merged into trunk, stable web-client.

Thank you.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers