I have the same error using survey module on 6.0.
Create a new survey.
Enter name and page name.
Create a new question.
Choose a question type that requires Answers.
Click on Create to create an answer.
<type 'exceptions.IndexError'> Python 2.6.5:
/home/openerp/openerp/openerp-virt/bin/python
Thu Jul 28 09:49:56 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.
/usr/local/lib/python2.6/dist-packages/cherrypy/_cprequest.py in
respond(self=<cherrypy._cprequest.Request object>,
path_info='/openerp/listgrid/get')
604 if self.handler:
605 self.stage = 'handler'
606 cherrypy.response.body = self.handler()
607
608 self.stage = 'before_finalize'
global cherrypy = <module 'cherrypy' from
'/usr/local/lib/python2.6/dist-packages/cherrypy/__init__.pyc'>,
cherrypy.response = <cherrypy._ThreadLocalProxy object>, cherrypy.response.body
= [], self = <cherrypy._cprequest.Request object>, self.handler =
<cherrypy._cpdispatch.LateParamPageHandler object>
/usr/local/lib/python2.6/dist-packages/cherrypy/_cpdispatch.py in
__call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
23 def __call__(self):
24 try:
25 return self.callable(*self.args, **self.kwargs)
26 except TypeError, x:
27 test_callable_spec(self.callable, self.args, self.kwargs)
self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable =
<bound method Root.default of <openobject.controllers._root.Root object>>,
self.args = ('openerp', 'listgrid', 'get'), self.kwargs =
{'_terp_concurrency_info': 'null', '_terp_context': "{'lang': u'fr_FR', 'tz':
False, 'search_view': 6...eb', 'active_ids': [349], 'department_id': False}",
'_terp_count': '2', '_terp_domain': '[]', '_terp_edit_inline': '-1',
'_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context':
'', '_terp_group_by_ctx': '[]', '_terp_id': '3', ...}
/home/openerp/openerp/openobject-client-web/openobject/tools/_expose.py in
func_wrapper(*args=(<openobject.controllers._root.Root object>, 'openerp',
'listgrid', 'get'), **kw={'_terp_concurrency_info': 'null', '_terp_context':
"{'lang': u'fr_FR', 'tz': False, 'search_view': 6...eb', 'active_ids': [349],
'department_id': False}", '_terp_count': '2', '_terp_domain': '[]',
'_terp_edit_inline': '-1', '_terp_editable': 'True', '_terp_filter_domain':
'[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': '3',
...})
180 raise cherrypy.HTTPError(405)
181
182 res = func(*args, **kw)
183 if format == 'json' or (allow_json and 'allow_json' in
cherrypy.request.params):
184 cherrypy.response.headers['Content-Type'] =
'text/javascript'
global res =
'/home/openerp/openerp/openobject-client-web/addons/view_calendar/controllers/templates/calpopup.mako',
func = <function default>, args = (<openobject.controllers._root.Root object>,
'openerp', 'listgrid', 'get'), kw = {'_terp_concurrency_info': 'null',
'_terp_context': "{'lang': u'fr_FR', 'tz': False, 'search_view': 6...eb',
'active_ids': [349], 'department_id': False}", '_terp_count': '2',
'_terp_domain': '[]', '_terp_edit_inline': '-1', '_terp_editable': 'True',
'_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx':
'[]', '_terp_id': '3', ...}
/home/openerp/openerp/openobject-client-web/openobject/controllers/_root.py in
default(self=<openobject.controllers._root.Root object>, *args=('openerp',
'listgrid', 'get'), **kw={'_terp_concurrency_info': 'null', '_terp_context':
"{'lang': u'fr_FR', 'tz': False, 'search_view': 6...eb', 'active_ids': [349],
'department_id': False}", '_terp_count': '2', '_terp_domain': '[]',
'_terp_edit_inline': '-1', '_terp_editable': 'True', '_terp_filter_domain':
'[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': '3',
...})
88 request.handler = cherrypy.NotFound()
89
90 return request.handler()
91
92 def find_handler(self):
request = <cherrypy._ThreadLocalProxy object>, request.handler =
<cherrypy._cpdispatch.LateParamPageHandler object>
/usr/local/lib/python2.6/dist-packages/cherrypy/_cpdispatch.py in
__call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
23 def __call__(self):
24 try:
25 return self.callable(*self.args, **self.kwargs)
26 except TypeError, x:
27 test_callable_spec(self.callable, self.args, self.kwargs)
self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable =
<function get>, self.args = (), self.kwargs = {'_terp_concurrency_info':
'null', '_terp_context': "{'lang': u'fr_FR', 'tz': False, 'search_view':
6...eb', 'active_ids': [349], 'department_id': False}", '_terp_count': '2',
'_terp_domain': '[]', '_terp_edit_inline': '-1', '_terp_editable': 'True',
'_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx':
'[]', '_terp_id': '3', ...}
/home/openerp/openerp/openobject-client-web/addons/openerp/controllers/utils.py
in wrapper(*args=(), **kw={'_terp_concurrency_info': 'null', '_terp_context':
"{'lang': u'fr_FR', 'tz': False, 'search_view': 6...eb', 'active_ids': [349],
'department_id': False}", '_terp_count': '2', '_terp_domain': '[]',
'_terp_edit_inline': '-1', '_terp_editable': 'True', '_terp_filter_domain':
'[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': '3',
...})
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', '')
fn = <bound method List.get of <openerp.controllers.listgrid.List object>>,
args = (), kw = {'_terp_concurrency_info': 'null', '_terp_context': "{'lang':
u'fr_FR', 'tz': False, 'search_view': 6...eb', 'active_ids': [349],
'department_id': False}", '_terp_count': '2', '_terp_domain': '[]',
'_terp_edit_inline': '-1', '_terp_editable': 'True', '_terp_filter_domain':
'[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': '3',
...}
/home/openerp/openerp/openobject-client-web/openobject/tools/_expose.py in
func_wrapper(*args=(<openerp.controllers.listgrid.List object>,),
**kw={'_terp_concurrency_info': 'null', '_terp_context': "{'lang': u'fr_FR',
'tz': False, 'search_view': 6...eb', 'active_ids': [349], 'department_id':
False}", '_terp_count': '2', '_terp_domain': '[]', '_terp_edit_inline': '-1',
'_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context':
'', '_terp_group_by_ctx': '[]', '_terp_id': '3', ...})
180 raise cherrypy.HTTPError(405)
181
182 res = func(*args, **kw)
183 if format == 'json' or (allow_json and 'allow_json' in
cherrypy.request.params):
184 cherrypy.response.headers['Content-Type'] =
'text/javascript'
global res =
'/home/openerp/openerp/openobject-client-web/addons/view_calendar/controllers/templates/calpopup.mako',
func = <function get>, args = (<openerp.controllers.listgrid.List object>,),
kw = {'_terp_concurrency_info': 'null', '_terp_context': "{'lang': u'fr_FR',
'tz': False, 'search_view': 6...eb', 'active_ids': [349], 'department_id':
False}", '_terp_count': '2', '_terp_domain': '[]', '_terp_edit_inline': '-1',
'_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context':
'', '_terp_group_by_ctx': '[]', '_terp_id': '3', ...}
/home/openerp/openerp/openobject-client-web/addons/openerp/controllers/listgrid.py
in get(self=<openerp.controllers.listgrid.List object>,
**kw={'_terp_concurrency_info': 'null', '_terp_context': "{'lang': u'fr_FR',
'tz': False, 'search_view': 6...eb', 'active_ids': [349], 'department_id':
False}", '_terp_count': '2', '_terp_domain': '[]', '_terp_edit_inline': '-1',
'_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context':
'', '_terp_group_by_ctx': '[]', '_terp_id': '3', ...})
283 wid = frm.screen.widget
284 else:
285 wid = frm.screen.get_widgets_by_name(source,
kind=listgrid.List)[0]
286
287 ids = wid.ids
wid undefined, frm = ViewForm, frm.screen = Screen,
frm.screen.get_widgets_by_name = <bound method Screen.get_widgets_by_name of
Screen>, source = 'question_ids/answer_choice_ids', kind undefined, global
listgrid = <module 'openerp.widgets.listgrid' from
'/home/o...-client-web/addons/openerp/widgets/listgrid.pyc'>, listgrid.List =
<class 'openerp.widgets.listgrid.List'>
<type 'exceptions.IndexError'>: list index out of range
--
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/768106
Title:
Got an error When one2many or many2many inside a one2many wizard
Status in OpenERP Web Client:
Confirmed
Bug description:
Got an error When one2many or many2many inside a one2many wizard .When
select data into the many2many , i got the below error .
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File
"/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py",
line 606, in respond
cherrypy.response.body = self.handler()
File
"/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py",
line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/home/anoop/Desktop/openerp6 documents/openerp
6_0_2/openerp-web-6.0.2/openobject/tools/_expose.py", line 182, in func_wrapper
res = func(*args, **kw)
File "/home/anoop/Desktop/openerp6 documents/openerp
6_0_2/openerp-web-6.0.2/openobject/controllers/_root.py", line 87, in default
return request.handler()
File
"/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py",
line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/home/anoop/Desktop/openerp6 documents/openerp
6_0_2/openerp-web-6.0.2/addons/openerp/controllers/utils.py", line 112, in
wrapper
return fn(*args, **kw)
File "/home/anoop/Desktop/openerp6 documents/openerp
6_0_2/openerp-web-6.0.2/openobject/tools/_expose.py", line 182, in func_wrapper
res = func(*args, **kw)
File "/home/anoop/Desktop/openerp6 documents/openerp
6_0_2/openerp-web-6.0.2/addons/openerp/controllers/listgrid.py", line 285, in
get
wid = frm.screen.get_widgets_by_name(source, kind=listgrid.List)[0]
IndexError: list index out of range
/usr/lib/python2.6/cgitb.py:173: DeprecationWarning: BaseException.message
has been deprecated as of Python 2.6
value = pydoc.html.repr(getattr(evalue, name))
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/768106/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp