c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #31228
[Bug 836825] [NEW] exceptions.TypeError in Search with empty filters
Public bug reported:
Steps to reproduce the issue:
---------------------------------------------------
- Login to web Client version Versión 6.0.3 (any user)
- Go toOpportunities "Search view"
- Delete Salesman and any other field that has information (i.e. deselect CURRENT, OPEN, PENDING)
The result observed
-----------------------------------------------
<type 'exceptions.TypeError'> Python 2.5.2: C:\Program Files (x86)\OpenERP 6.0\Web\openerp-web.exe
Mon Aug 29 18:17:44 2011
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
C:\Program Files (x86)\OpenERP 6.0\Web\cherrypy\_cprequest.pyo in respond(self=<cherrypy._cprequest.Request object at 0x031B11B0>, path_info='/openerp/listgrid/get')
C:\Program Files (x86)\OpenERP 6.0\Web\cherrypy\_cpdispatch.pyo in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at 0x031B14F0>)
C:\Program Files (x86)\OpenERP 6.0\Web\openobject\tools\_expose.pyo in func_wrapper(*args=(<openobject.controllers._root.Root object at 0x011DCC50>, 'openerp', 'listgrid', 'get'), **kw={'_terp_action_id': '357', '_terp_context': 'undefined', '_terp_count': '0', '_terp_domain': "[('type', '=', 'opportunity')]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', ...})
C:\Program Files (x86)\OpenERP 6.0\Web\openobject\controllers\_root.pyo in default(self=<openobject.controllers._root.Root object at 0x011DCC50>, *args=('openerp', 'listgrid', 'get'), **kw={'_terp_action_id': '357', '_terp_context': 'undefined', '_terp_count': '0', '_terp_domain': "[('type', '=', 'opportunity')]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', ...})
C:\Program Files (x86)\OpenERP 6.0\Web\cherrypy\_cpdispatch.pyo in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at 0x02F29110>)
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py in wrapper(*args=(), **kw={'_terp_action_id': '357', '_terp_context': 'undefined', '_terp_count': '0', '_terp_domain': "[('type', '=', 'opportunity')]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', ...})
110 # User is logged in; allow access
111 clear_login_fields(kw)
112 return fn(*args, **kw)
113 else:
114 action = kw.get('login_action', '')
C:\Program Files (x86)\OpenERP 6.0\Web\openobject\tools\_expose.pyo in func_wrapper(*args=(<openerp.controllers.listgrid.List object at 0x02F29B50>,), **kw={'_terp_action_id': '357', '_terp_context': 'undefined', '_terp_count': '0', '_terp_domain': "[('type', '=', 'opportunity')]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', ...})
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\listgrid.py in get(self=<openerp.controllers.listgrid.List object at 0x02F29B50>, **kw={'_terp_action_id': '357', '_terp_context': 'undefined', '_terp_count': '0', '_terp_domain': "[('type', '=', 'opportunity')]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', ...})
281 frm = res['form']
282 else:
283 frm = form.Form().create_form(params)
284
285 if params.view_type == 'graph':
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in create_form(self=<openerp.controllers.form.Form object at 0x02E2FB70>, params={'_terp_offset': 0, '_terp_filters_context': '',...ing': 'Opportunities', '_terp_filter_domain': []}, tg_errors=None)
184 params.view_type = params.view_type or params.view_mode[0]
185
186 return tw.form_view.ViewForm(params, name="view_form", action="/openerp/form/save")
187
188 @expose(template="/openerp/controllers/templates/form.mako")
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form_view.py in __init__(self=ViewForm, params={'_terp_offset': 0, '_terp_filters_context': '',...ing': 'Opportunities', '_terp_filter_domain': []}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
61 params_domain = params.domain or []
62 for element in params_domain:
63 if element not in search_param or len(element) == 1:
64 if not isinstance(element,tuple):
65 search_param.append(element)
<type 'exceptions.TypeError'>: 'in <string>' requires string as left operand
args = ("'in <string>' requires string as left operand",)
message = "'in <string>' requires string as left operand
The expected result
---------------------------------
Search results
Web browser and platform your are using
----------------------------------------------------------------------
Google Chrome 13.0.782.215: FAILS
IE 9.0.x: Works
OpenERP 6.0.3 from installer
Server: Windows 2008
Client: Windows 7 64 Bits
** Affects: openobject-client-web
Importance: Undecided
Status: New
--
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/836825
Title:
exceptions.TypeError in Search with empty filters
Status in OpenERP Web Client:
New
Bug description:
Steps to reproduce the issue:
---------------------------------------------------
- Login to web Client version Versión 6.0.3 (any user)
- Go toOpportunities "Search view"
- Delete Salesman and any other field that has information (i.e. deselect CURRENT, OPEN, PENDING)
The result observed
-----------------------------------------------
<type 'exceptions.TypeError'> Python 2.5.2: C:\Program Files (x86)\OpenERP 6.0\Web\openerp-web.exe
Mon Aug 29 18:17:44 2011
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
C:\Program Files (x86)\OpenERP 6.0\Web\cherrypy\_cprequest.pyo in respond(self=<cherrypy._cprequest.Request object at 0x031B11B0>, path_info='/openerp/listgrid/get')
C:\Program Files (x86)\OpenERP 6.0\Web\cherrypy\_cpdispatch.pyo in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at 0x031B14F0>)
C:\Program Files (x86)\OpenERP 6.0\Web\openobject\tools\_expose.pyo in func_wrapper(*args=(<openobject.controllers._root.Root object at 0x011DCC50>, 'openerp', 'listgrid', 'get'), **kw={'_terp_action_id': '357', '_terp_context': 'undefined', '_terp_count': '0', '_terp_domain': "[('type', '=', 'opportunity')]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', ...})
C:\Program Files (x86)\OpenERP 6.0\Web\openobject\controllers\_root.pyo in default(self=<openobject.controllers._root.Root object at 0x011DCC50>, *args=('openerp', 'listgrid', 'get'), **kw={'_terp_action_id': '357', '_terp_context': 'undefined', '_terp_count': '0', '_terp_domain': "[('type', '=', 'opportunity')]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', ...})
C:\Program Files (x86)\OpenERP 6.0\Web\cherrypy\_cpdispatch.pyo in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at 0x02F29110>)
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py in wrapper(*args=(), **kw={'_terp_action_id': '357', '_terp_context': 'undefined', '_terp_count': '0', '_terp_domain': "[('type', '=', 'opportunity')]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', ...})
110 # User is logged in; allow access
111 clear_login_fields(kw)
112 return fn(*args, **kw)
113 else:
114 action = kw.get('login_action', '')
C:\Program Files (x86)\OpenERP 6.0\Web\openobject\tools\_expose.pyo in func_wrapper(*args=(<openerp.controllers.listgrid.List object at 0x02F29B50>,), **kw={'_terp_action_id': '357', '_terp_context': 'undefined', '_terp_count': '0', '_terp_domain': "[('type', '=', 'opportunity')]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', ...})
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\listgrid.py in get(self=<openerp.controllers.listgrid.List object at 0x02F29B50>, **kw={'_terp_action_id': '357', '_terp_context': 'undefined', '_terp_count': '0', '_terp_domain': "[('type', '=', 'opportunity')]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', ...})
281 frm = res['form']
282 else:
283 frm = form.Form().create_form(params)
284
285 if params.view_type == 'graph':
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in create_form(self=<openerp.controllers.form.Form object at 0x02E2FB70>, params={'_terp_offset': 0, '_terp_filters_context': '',...ing': 'Opportunities', '_terp_filter_domain': []}, tg_errors=None)
184 params.view_type = params.view_type or params.view_mode[0]
185
186 return tw.form_view.ViewForm(params, name="view_form", action="/openerp/form/save")
187
188 @expose(template="/openerp/controllers/templates/form.mako")
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form_view.py in __init__(self=ViewForm, params={'_terp_offset': 0, '_terp_filters_context': '',...ing': 'Opportunities', '_terp_filter_domain': []}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
61 params_domain = params.domain or []
62 for element in params_domain:
63 if element not in search_param or len(element) == 1:
64 if not isinstance(element,tuple):
65 search_param.append(element)
<type 'exceptions.TypeError'>: 'in <string>' requires string as left operand
args = ("'in <string>' requires string as left operand",)
message = "'in <string>' requires string as left operand
The expected result
---------------------------------
Search results
Web browser and platform your are using
----------------------------------------------------------------------
Google Chrome 13.0.782.215: FAILS
IE 9.0.x: Works
OpenERP 6.0.3 from installer
Server: Windows 2008
Client: Windows 7 64 Bits
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/836825/+subscriptions
Follow ups
References