c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #02323
[Bug 628791] Re: [trunk] form view crashes on "manage filters"
** Changed in: openobject-client-web
Status: Fix Committed => Fix Released
--
[trunk] form view crashes on "manage filters"
https://bugs.launchpad.net/bugs/628791
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Web Client: Fix Released
Bug description:
Using revision 3180, the web client crashes when you select "manage filters" and then switch to the form view. No problem occurs with the GTK client.
The (long) error reported is the following:
<type 'exceptions.ValueError'> Python 2.6.5: /usr/bin/python
Thu Sep 2 14:04:08 2010
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/lib/pymodules/python2.6/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/form/switch')
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/lib/pymodules/python2.6/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
/usr/lib/pymodules/python2.6/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', 'form', 'switch'), self.kwargs = {'_terp_context': "{'lang': u'en_US', '_terp_view_name': 'Manage Fi...ds': [], 'section_id': False, 'active_id': False}", '_terp_count': '0', '_terp_domain': "[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', '_terp_limit': '50', ...}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/openobject/tools/_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object>, 'openerp', 'form', 'switch'), **kw={'_terp_context': "{'lang': u'en_US', '_terp_view_name': 'Manage Fi...ds': [], 'section_id': False, 'active_id': False}", '_terp_count': '0', '_terp_domain': "[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', '_terp_limit': '50', ...})
200 def func_wrapper(*args, **kw):
201
202 res = func(*args, **kw)
203
204 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/usr/local/lib/python2.6/dist-packages/openerp_w...-web/openobject/admin/i18n/mapping/javascript.cfg', func = <function default>, args = (<openobject.controllers._root.Root object>, 'openerp', 'form', 'switch'), kw = {'_terp_context': "{'lang': u'en_US', '_terp_view_name': 'Manage Fi...ds': [], 'section_id': False, 'active_id': False}", '_terp_count': '0', '_terp_domain': "[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', '_terp_limit': '50', ...}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/openobject/controllers/_root.py in default(self=<openobject.controllers._root.Root object>, *args=('openerp', 'form', 'switch'), **kw={'_terp_context': "{'lang': u'en_US', '_terp_view_name': 'Manage Fi...ds': [], 'section_id': False, 'active_id': False}", '_terp_count': '0', '_terp_domain': "[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', '_terp_limit': '50', ...})
35 request.handler = cherrypy.NotFound()
36
37 return request.handler()
38
39 def find_handler(self):
request = <cherrypy._ThreadLocalProxy object>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
/usr/lib/pymodules/python2.6/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 switch>, self.args = (), self.kwargs = {'_terp_context': "{'lang': u'en_US', '_terp_view_name': 'Manage Fi...ds': [], 'section_id': False, 'active_id': False}", '_terp_count': '0', '_terp_domain': "[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', '_terp_limit': '50', ...}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'_terp_context': "{'lang': u'en_US', '_terp_view_name': 'Manage Fi...ds': [], 'section_id': False, 'active_id': False}", '_terp_count': '0', '_terp_domain': "[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', '_terp_limit': '50', ...})
122 # User is logged in; allow access
123 clear_login_fields(kw)
124 return fn(*args, **kw)
125 else:
126 # User isn't logged in yet.
fn = <bound method Form.switch of <openerp.controllers.form.Form object>>, args = (), kw = {'_terp_context': "{'lang': u'en_US', '_terp_view_name': 'Manage Fi...ds': [], 'section_id': False, 'active_id': False}", '_terp_count': '0', '_terp_domain': "[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', '_terp_limit': '50', ...}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.form.Form object>,), **kw={'_terp_context': "{'lang': u'en_US', '_terp_view_name': 'Manage Fi...ds': [], 'section_id': False, 'active_id': False}", '_terp_count': '0', '_terp_domain': "[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', '_terp_limit': '50', ...})
200 def func_wrapper(*args, **kw):
201
202 res = func(*args, **kw)
203
204 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/usr/local/lib/python2.6/dist-packages/openerp_w...-web/openobject/admin/i18n/mapping/javascript.cfg', func = <function switch>, args = (<openerp.controllers.form.Form object>,), kw = {'_terp_context': "{'lang': u'en_US', '_terp_view_name': 'Manage Fi...ds': [], 'section_id': False, 'active_id': False}", '_terp_count': '0', '_terp_domain': "[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', '_terp_limit': '50', ...}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/openobject/tools/_validate.py in func_wrapper(*args=[<openerp.controllers.form.Form object>], **kw={'_terp_context': "{'lang': u'en_US', '_terp_view_name': 'Manage Fi...ds': [], 'section_id': False, 'active_id': False}", '_terp_count': '0', '_terp_domain': "[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', '_terp_limit': '50', ...})
87
88 args, kw = from_kw(func, args, kw)
89 return func(*args, **kw)
90
91 return decorated(func_wrapper, func)
func = <function switch>, args = [<openerp.controllers.form.Form object>], kw = {'_terp_context': "{'lang': u'en_US', '_terp_view_name': 'Manage Fi...ds': [], 'section_id': False, 'active_id': False}", '_terp_count': '0', '_terp_domain': "[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', '_terp_limit': '50', ...}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/controllers/form.py in switch(self=<openerp.controllers.form.Form object>, **kw={'_terp_context': "{'lang': u'en_US', '_terp_view_name': 'Manage Fi...ds': [], 'section_id': False, 'active_id': False}", '_terp_count': '0', '_terp_domain': "[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))]", '_terp_editable': 'True', '_terp_filter_domain': '[]', '_terp_filters_context': '', '_terp_group_by_ctx': '[]', '_terp_id': 'False', '_terp_ids': '', '_terp_limit': '50', ...})
830 # switch the view
831 params.view_type = params.source_view_type
832 return self.create(params)
833
834 @expose()
self = <openerp.controllers.form.Form object>, self.create = <function create>, params = {'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/controllers/utils.py in wrapper(*args=({'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []},), **kw={})
122 # User is logged in; allow access
123 clear_login_fields(kw)
124 return fn(*args, **kw)
125 else:
126 # User isn't logged in yet.
fn = <bound method Form.create of <openerp.controllers.form.Form object>>, args = ({'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []},), kw = {}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.form.Form object>, {'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []}), **kw={})
200 def func_wrapper(*args, **kw):
201
202 res = func(*args, **kw)
203
204 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/usr/local/lib/python2.6/dist-packages/openerp_w...-web/openobject/admin/i18n/mapping/javascript.cfg', func = <function create>, args = (<openerp.controllers.form.Form object>, {'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []}), kw = {}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/controllers/form.py in create(self=<openerp.controllers.form.Form object>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []}, tg_errors=None)
200 if params.view_type == 'tree':
201 params.editable = True
202 form = self.create_form(params, tg_errors)
203
204 if not tg_errors:
form undefined, self = <openerp.controllers.form.Form object>, self.create_form = <bound method Form.create_form of <openerp.controllers.form.Form object>>, params = {'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []}, tg_errors = None
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/controllers/form.py in create_form(self=<openerp.controllers.form.Form object>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []}, tg_errors=None)
191 params.view_type = params.view_type or params.view_mode[0]
192
193 return tw.form_view.ViewForm(params, name="view_form", action="/openerp/form/save")
194
195 @expose(template="templates/form.mako")
global tw = <module 'openerp.widgets' from '/usr/local/lib/p...openerp-web/addons/openerp/widgets/__init__.pyc'>, tw.form_view = <module 'openerp.widgets.form_view' from '/usr/l...penerp-web/addons/openerp/widgets/form_view.pyc'>, tw.form_view.ViewForm = <class 'openerp.widgets.form_view.ViewForm'>, params = {'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []}, name undefined, action undefined
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/openobject/widgets/_meta.py in wrapper(self=ViewForm, *args=({'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []},), **kw={'action': '/openerp/form/save', 'name': 'view_form'})
38 self.__initstack.append(1)
39
40 res = func(self, *args, **kw)
41 try:
42 self.__initstack.pop()
res undefined, func = <function __init__>, self = ViewForm, args = ({'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []},), kw = {'action': '/openerp/form/save', 'name': 'view_form'}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/widgets/form_view.py in __init__(self=ViewForm, params={'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
97
98 self.screen = Screen(prefix='', hastoolbar=True, hassubmenu=True, editable=editable, readonly=readonly,
99 selectable=params.selectable or 2)
100
101 if self.screen.widget and self.screen.view_type in ['form', 'tree']:
selectable undefined, params = {'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []}, params.selectable = None
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/openobject/widgets/_meta.py in wrapper(self=Screen, *args=(), **kw={'editable': True, 'hassubmenu': True, 'hastoolbar': True, 'prefix': '', 'readonly': False, 'selectable': 2})
38 self.__initstack.append(1)
39
40 res = func(self, *args, **kw)
41 try:
42 self.__initstack.pop()
res undefined, func = <function __init__>, self = Screen, args = (), kw = {'editable': True, 'hassubmenu': True, 'hastoolbar': True, 'prefix': '', 'readonly': False, 'selectable': 2}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/widgets/screen.py in __init__(self=Screen, params={'_terp_view_type': 'form', '_terp_offset': 0, '...er_id', '=', ('1',))], '_terp_filter_domain': []}, prefix='', name='', views_preloaded={}, hastoolbar=True, hassubmenu=True, editable=True, readonly=False, selectable=2, nolinks=1, **kw={})
131
132 if self.view_mode:
133 self.add_view_id(self.view_id, self.view_type)
134
135 def add_view_id(self, view_id, view_type):
self = Screen, self.add_view_id = <bound method Screen.add_view_id of Screen>, self.view_id = 23, self.view_type = 'form'
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/widgets/screen.py in add_view_id(self=Screen, view_id=False, view_type='form')
143 view = cache.fields_view_get(self.model, view_id, view_type, ctx, self.hastoolbar, self.hassubmenu)
144
145 self.add_view(view, view_type)
146
147 def add_view(self, view, view_type='form'):
self = Screen, self.add_view = <bound method Screen.add_view of Screen>, view = {'arch': u'<form string="Filters">\n <gro... </group>\n </form>', 'field_parent': False, 'fields': {'context': {'required': True, 'selectable': True, 'string': u'Context Value', 'type': u'text', 'views': {}}, 'domain': {'required': True, 'selectable': True, 'string': u'Domain Value', 'type': u'text', 'views': {}}, 'model_id': {'required': True, 'selectable': True, 'selection': [(u'ir.model', u'Objects'), (u'ir.model.grid', u'Objects Security Grid'), (u'ir.model.fields', u'Fields'), (u'ir.model.access', u'ir.model.access'), (u'ir.model.data', u'ir.model.data'), (u'ir.sequence.type', u'ir.sequence.type'), (u'ir.sequence', u'ir.sequence'), (u'ir.ui.menu', u'ir.ui.menu'), (u'ir.ui.view.custom', u'ir.ui.view.custom'), (u'ir.ui.view', u'ir.ui.view'), (u'ir.ui.view_sc', u'ir.ui.view_sc'), (u'ir.default', u'ir.default'), (u'ir.actions.actions', u'ir.actions.actions'), (u'ir.actions.report.custom', u'ir.actions.report.custom'), (u'ir.actions.report.xml', u'ir.actions.report.xml'), (u'ir.actions.act_window', u'ir.actions.act_window'), (u'ir.actions.act_window.view', u'ir.actions.act_window.view'), (u'ir.actions.wizard', u'ir.actions.wizard'), (u'ir.actions.url', u'ir.actions.url'), (u'ir.server.object.lines', u'ir.server.object.lines'), ...], 'string': u'Model', 'type': u'selection', 'views': {}}, 'name': {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'editable': True, 'link': 1, 'model': 'ir.filters', 'name': u'name', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, 'size': 64, ...}, 'user_id': {'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}}, 'model': u'ir.filters', 'name': u'ir.filters.form', 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 23}, view_type = 'form'
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/widgets/screen.py in add_view(self=Screen, view={'arch': u'<form string="Filters">\n <gro... </group>\n </form>', 'field_parent': False, 'fields': {'context': {'required': True, 'selectable': True, 'string': u'Context Value', 'type': u'text', 'views': {}}, 'domain': {'required': True, 'selectable': True, 'string': u'Domain Value', 'type': u'text', 'views': {}}, 'model_id': {'required': True, 'selectable': True, 'selection': [(u'ir.model', u'Objects'), (u'ir.model.grid', u'Objects Security Grid'), (u'ir.model.fields', u'Fields'), (u'ir.model.access', u'ir.model.access'), (u'ir.model.data', u'ir.model.data'), (u'ir.sequence.type', u'ir.sequence.type'), (u'ir.sequence', u'ir.sequence'), (u'ir.ui.menu', u'ir.ui.menu'), (u'ir.ui.view.custom', u'ir.ui.view.custom'), (u'ir.ui.view', u'ir.ui.view'), (u'ir.ui.view_sc', u'ir.ui.view_sc'), (u'ir.default', u'ir.default'), (u'ir.actions.actions', u'ir.actions.actions'), (u'ir.actions.report.custom', u'ir.actions.report.custom'), (u'ir.actions.report.xml', u'ir.actions.report.xml'), (u'ir.actions.act_window', u'ir.actions.act_window'), (u'ir.actions.act_window.view', u'ir.actions.act_window.view'), (u'ir.actions.wizard', u'ir.actions.wizard'), (u'ir.actions.url', u'ir.actions.url'), (u'ir.server.object.lines', u'ir.server.object.lines'), ...], 'string': u'Model', 'type': u'selection', 'views': {}}, 'name': {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'editable': True, 'link': 1, 'model': 'ir.filters', 'name': u'name', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, 'size': 64, ...}, 'user_id': {'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}}, 'model': u'ir.filters', 'name': u'ir.filters.form', 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 23}, view_type='form')
151
152 from _views import get_view_widget
153 self.widget = get_view_widget(view_type, self)
154
155 self.string = (self.widget or '') and self.widget.string
self = Screen, self.widget = None, get_view_widget = <function get_view_widget>, view_type = 'form'
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/widgets/_views.py in get_view_widget(kind='form', screen=Screen)
125 raise Exception("view '%s' not supported." % kind)
126
127 return view(screen)
128
129 def get_registered_views():
view = <openerp.widgets._views.FormView object>, screen = Screen
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/widgets/_views.py in __call__(self=<openerp.widgets._views.FormView object>, screen=Screen)
59 editable=screen.editable,
60 readonly=screen.readonly,
61 nodefault=screen.nodefault, nolinks=screen.link)
62
63 if not screen.is_wizard and screen.ids is None:
nodefault undefined, screen = Screen, screen.nodefault = False, nolinks undefined, screen.link = 1
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/openobject/widgets/_meta.py in wrapper(self=Form, *args=(), **kw={'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'domain': [('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))], 'editable': True, 'ids': [], 'model': 'ir.filters', 'nodefault': False, 'nolinks': 1, 'prefix': '', 'readonly': False, 'view': {'arch': u'<form string="Filters">\n <gro... </group>\n </form>', 'field_parent': False, 'fields': {'context': {'required': True, 'selectable': True, 'string': u'Context Value', 'type': u'text', 'views': {}}, 'domain': {'required': True, 'selectable': True, 'string': u'Domain Value', 'type': u'text', 'views': {}}, 'model_id': {'required': True, 'selectable': True, 'selection': [(u'ir.model', u'Objects'), (u'ir.model.grid', u'Objects Security Grid'), (u'ir.model.fields', u'Fields'), (u'ir.model.access', u'ir.model.access'), (u'ir.model.data', u'ir.model.data'), (u'ir.sequence.type', u'ir.sequence.type'), (u'ir.sequence', u'ir.sequence'), (u'ir.ui.menu', u'ir.ui.menu'), (u'ir.ui.view.custom', u'ir.ui.view.custom'), (u'ir.ui.view', u'ir.ui.view'), (u'ir.ui.view_sc', u'ir.ui.view_sc'), (u'ir.default', u'ir.default'), (u'ir.actions.actions', u'ir.actions.actions'), (u'ir.actions.report.custom', u'ir.actions.report.custom'), (u'ir.actions.report.xml', u'ir.actions.report.xml'), (u'ir.actions.act_window', u'ir.actions.act_window'), (u'ir.actions.act_window.view', u'ir.actions.act_window.view'), (u'ir.actions.wizard', u'ir.actions.wizard'), (u'ir.actions.url', u'ir.actions.url'), (u'ir.server.object.lines', u'ir.server.object.lines'), ...], 'string': u'Model', 'type': u'selection', 'views': {}}, 'name': {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'editable': True, 'link': 1, 'model': 'ir.filters', 'name': u'name', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, 'size': 64, ...}, 'user_id': {'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}}, 'model': u'ir.filters', 'name': u'ir.filters.form', 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 23}})
38 self.__initstack.append(1)
39
40 res = func(self, *args, **kw)
41 try:
42 self.__initstack.pop()
res undefined, func = <function __init__>, self = Form, args = (), kw = {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'domain': [('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))], 'editable': True, 'ids': [], 'model': 'ir.filters', 'nodefault': False, 'nolinks': 1, 'prefix': '', 'readonly': False, 'view': {'arch': u'<form string="Filters">\n <gro... </group>\n </form>', 'field_parent': False, 'fields': {'context': {'required': True, 'selectable': True, 'string': u'Context Value', 'type': u'text', 'views': {}}, 'domain': {'required': True, 'selectable': True, 'string': u'Domain Value', 'type': u'text', 'views': {}}, 'model_id': {'required': True, 'selectable': True, 'selection': [(u'ir.model', u'Objects'), (u'ir.model.grid', u'Objects Security Grid'), (u'ir.model.fields', u'Fields'), (u'ir.model.access', u'ir.model.access'), (u'ir.model.data', u'ir.model.data'), (u'ir.sequence.type', u'ir.sequence.type'), (u'ir.sequence', u'ir.sequence'), (u'ir.ui.menu', u'ir.ui.menu'), (u'ir.ui.view.custom', u'ir.ui.view.custom'), (u'ir.ui.view', u'ir.ui.view'), (u'ir.ui.view_sc', u'ir.ui.view_sc'), (u'ir.default', u'ir.default'), (u'ir.actions.actions', u'ir.actions.actions'), (u'ir.actions.report.custom', u'ir.actions.report.custom'), (u'ir.actions.report.xml', u'ir.actions.report.xml'), (u'ir.actions.act_window', u'ir.actions.act_window'), (u'ir.actions.act_window.view', u'ir.actions.act_window.view'), (u'ir.actions.wizard', u'ir.actions.wizard'), (u'ir.actions.url', u'ir.actions.url'), (u'ir.server.object.lines', u'ir.server.object.lines'), ...], 'string': u'Model', 'type': u'selection', 'views': {}}, 'name': {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'editable': True, 'link': 1, 'model': 'ir.filters', 'name': u'name', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, 'size': 64, ...}, 'user_id': {'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}}, 'model': u'ir.filters', 'name': u'ir.filters.form', 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 23}}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/widgets/form/_form.py in __init__(self=Form, prefix='', model='ir.filters', view={'arch': u'<form string="Filters">\n <gro... </group>\n </form>', 'field_parent': False, 'fields': {'context': {'required': True, 'selectable': True, 'string': u'Context Value', 'type': u'text', 'views': {}}, 'domain': {'required': True, 'selectable': True, 'string': u'Domain Value', 'type': u'text', 'views': {}}, 'model_id': {'required': True, 'selectable': True, 'selection': [(u'ir.model', u'Objects'), (u'ir.model.grid', u'Objects Security Grid'), (u'ir.model.fields', u'Fields'), (u'ir.model.access', u'ir.model.access'), (u'ir.model.data', u'ir.model.data'), (u'ir.sequence.type', u'ir.sequence.type'), (u'ir.sequence', u'ir.sequence'), (u'ir.ui.menu', u'ir.ui.menu'), (u'ir.ui.view.custom', u'ir.ui.view.custom'), (u'ir.ui.view', u'ir.ui.view'), (u'ir.ui.view_sc', u'ir.ui.view_sc'), (u'ir.default', u'ir.default'), (u'ir.actions.actions', u'ir.actions.actions'), (u'ir.actions.report.custom', u'ir.actions.report.custom'), (u'ir.actions.report.xml', u'ir.actions.report.xml'), (u'ir.actions.act_window', u'ir.actions.act_window'), (u'ir.actions.act_window.view', u'ir.actions.act_window.view'), (u'ir.actions.wizard', u'ir.actions.wizard'), (u'ir.actions.url', u'ir.actions.url'), (u'ir.server.object.lines', u'ir.server.object.lines'), ...], 'string': u'Model', 'type': u'selection', 'views': {}}, 'name': {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'editable': True, 'link': 1, 'model': 'ir.filters', 'name': u'name', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, 'size': 64, ...}, 'user_id': {'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}}, 'model': u'ir.filters', 'name': u'ir.filters.form', 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 23}, ids=[], domain=[('model_id', '=', 'crm.lead'), ('user_id', '=', ('1',))], context={'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, editable=True, readonly=False, nodefault=False, nolinks=1)
825 self.view_fields = []
826 self.nb_couter = 0
827 self.frame = self.parse(prefix, dom, fields, values)[0]
828 self.values = [values]
829 self.concurrency_info = ConcurrencyInfo(self.model, [self.id])
self = Form, self.frame = None, self.parse = <bound method Form.parse of Form>, prefix = '', dom = <xml.dom.minidom.Document instance>, fields = {'context': {'required': True, 'selectable': True, 'string': u'Context Value', 'type': u'text', 'views': {}}, 'domain': {'required': True, 'selectable': True, 'string': u'Domain Value', 'type': u'text', 'views': {}}, 'model_id': {'required': True, 'selectable': True, 'selection': [(u'ir.model', u'Objects'), (u'ir.model.grid', u'Objects Security Grid'), (u'ir.model.fields', u'Fields'), (u'ir.model.access', u'ir.model.access'), (u'ir.model.data', u'ir.model.data'), (u'ir.sequence.type', u'ir.sequence.type'), (u'ir.sequence', u'ir.sequence'), (u'ir.ui.menu', u'ir.ui.menu'), (u'ir.ui.view.custom', u'ir.ui.view.custom'), (u'ir.ui.view', u'ir.ui.view'), (u'ir.ui.view_sc', u'ir.ui.view_sc'), (u'ir.default', u'ir.default'), (u'ir.actions.actions', u'ir.actions.actions'), (u'ir.actions.report.custom', u'ir.actions.report.custom'), (u'ir.actions.report.xml', u'ir.actions.report.xml'), (u'ir.actions.act_window', u'ir.actions.act_window'), (u'ir.actions.act_window.view', u'ir.actions.act_window.view'), (u'ir.actions.wizard', u'ir.actions.wizard'), (u'ir.actions.url', u'ir.actions.url'), (u'ir.server.object.lines', u'ir.server.object.lines'), ...], 'string': u'Model', 'type': u'selection', 'views': {}}, 'name': {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'editable': True, 'link': 1, 'model': 'ir.filters', 'name': u'name', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, 'size': 64, ...}, 'user_id': {'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}}, values = {'model_id': 'crm.lead', 'user_id': ('1',)}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/widgets/form/_form.py in parse(self=Form, prefix='', root=<xml.dom.minidom.Document instance>, fields={'context': {'required': True, 'selectable': True, 'string': u'Context Value', 'type': u'text', 'views': {}}, 'domain': {'required': True, 'selectable': True, 'string': u'Domain Value', 'type': u'text', 'views': {}}, 'model_id': {'required': True, 'selectable': True, 'selection': [(u'ir.model', u'Objects'), (u'ir.model.grid', u'Objects Security Grid'), (u'ir.model.fields', u'Fields'), (u'ir.model.access', u'ir.model.access'), (u'ir.model.data', u'ir.model.data'), (u'ir.sequence.type', u'ir.sequence.type'), (u'ir.sequence', u'ir.sequence'), (u'ir.ui.menu', u'ir.ui.menu'), (u'ir.ui.view.custom', u'ir.ui.view.custom'), (u'ir.ui.view', u'ir.ui.view'), (u'ir.ui.view_sc', u'ir.ui.view_sc'), (u'ir.default', u'ir.default'), (u'ir.actions.actions', u'ir.actions.actions'), (u'ir.actions.report.custom', u'ir.actions.report.custom'), (u'ir.actions.report.xml', u'ir.actions.report.xml'), (u'ir.actions.act_window', u'ir.actions.act_window'), (u'ir.actions.act_window.view', u'ir.actions.act_window.view'), (u'ir.actions.wizard', u'ir.actions.wizard'), (u'ir.actions.url', u'ir.actions.url'), (u'ir.server.object.lines', u'ir.server.object.lines'), ...], 'string': u'Model', 'type': u'selection', 'views': {}}, 'name': {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'editable': True, 'link': 1, 'model': 'ir.filters', 'name': u'name', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, 'size': 64, ...}, 'user_id': {'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}}, values={'model_id': 'crm.lead', 'user_id': ('1',)})
884
885 elif node.localName == 'form':
886 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
887 views.append(Frame(children=n, **attrs))
888
n undefined, self = Form, self.parse = <bound method Form.parse of Form>, prefix = '', root = <xml.dom.minidom.Document instance>, node = <DOM Element: form>, fields = {'context': {'required': True, 'selectable': True, 'string': u'Context Value', 'type': u'text', 'views': {}}, 'domain': {'required': True, 'selectable': True, 'string': u'Domain Value', 'type': u'text', 'views': {}}, 'model_id': {'required': True, 'selectable': True, 'selection': [(u'ir.model', u'Objects'), (u'ir.model.grid', u'Objects Security Grid'), (u'ir.model.fields', u'Fields'), (u'ir.model.access', u'ir.model.access'), (u'ir.model.data', u'ir.model.data'), (u'ir.sequence.type', u'ir.sequence.type'), (u'ir.sequence', u'ir.sequence'), (u'ir.ui.menu', u'ir.ui.menu'), (u'ir.ui.view.custom', u'ir.ui.view.custom'), (u'ir.ui.view', u'ir.ui.view'), (u'ir.ui.view_sc', u'ir.ui.view_sc'), (u'ir.default', u'ir.default'), (u'ir.actions.actions', u'ir.actions.actions'), (u'ir.actions.report.custom', u'ir.actions.report.custom'), (u'ir.actions.report.xml', u'ir.actions.report.xml'), (u'ir.actions.act_window', u'ir.actions.act_window'), (u'ir.actions.act_window.view', u'ir.actions.act_window.view'), (u'ir.actions.wizard', u'ir.actions.wizard'), (u'ir.actions.url', u'ir.actions.url'), (u'ir.server.object.lines', u'ir.server.object.lines'), ...], 'string': u'Model', 'type': u'selection', 'views': {}}, 'name': {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'editable': True, 'link': 1, 'model': 'ir.filters', 'name': u'name', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, 'size': 64, ...}, 'user_id': {'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}}, values = {'model_id': 'crm.lead', 'user_id': ('1',)}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/widgets/form/_form.py in parse(self=Form, prefix='', root=<DOM Element: form>, fields={'context': {'required': True, 'selectable': True, 'string': u'Context Value', 'type': u'text', 'views': {}}, 'domain': {'required': True, 'selectable': True, 'string': u'Domain Value', 'type': u'text', 'views': {}}, 'model_id': {'required': True, 'selectable': True, 'selection': [(u'ir.model', u'Objects'), (u'ir.model.grid', u'Objects Security Grid'), (u'ir.model.fields', u'Fields'), (u'ir.model.access', u'ir.model.access'), (u'ir.model.data', u'ir.model.data'), (u'ir.sequence.type', u'ir.sequence.type'), (u'ir.sequence', u'ir.sequence'), (u'ir.ui.menu', u'ir.ui.menu'), (u'ir.ui.view.custom', u'ir.ui.view.custom'), (u'ir.ui.view', u'ir.ui.view'), (u'ir.ui.view_sc', u'ir.ui.view_sc'), (u'ir.default', u'ir.default'), (u'ir.actions.actions', u'ir.actions.actions'), (u'ir.actions.report.custom', u'ir.actions.report.custom'), (u'ir.actions.report.xml', u'ir.actions.report.xml'), (u'ir.actions.act_window', u'ir.actions.act_window'), (u'ir.actions.act_window.view', u'ir.actions.act_window.view'), (u'ir.actions.wizard', u'ir.actions.wizard'), (u'ir.actions.url', u'ir.actions.url'), (u'ir.server.object.lines', u'ir.server.object.lines'), ...], 'string': u'Model', 'type': u'selection', 'views': {}}, 'name': {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'editable': True, 'link': 1, 'model': 'ir.filters', 'name': u'name', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, 'size': 64, ...}, 'user_id': {'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}}, values={'model_id': 'crm.lead', 'user_id': ('1',)})
899
900 elif node.localName=='group':
901 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
902 views.append(Group(children=n, **attrs))
903
n = [], self = Form, self.parse = <bound method Form.parse of Form>, prefix = '', root = <DOM Element: form>, node = <DOM Element: group>, fields = {'context': {'required': True, 'selectable': True, 'string': u'Context Value', 'type': u'text', 'views': {}}, 'domain': {'required': True, 'selectable': True, 'string': u'Domain Value', 'type': u'text', 'views': {}}, 'model_id': {'required': True, 'selectable': True, 'selection': [(u'ir.model', u'Objects'), (u'ir.model.grid', u'Objects Security Grid'), (u'ir.model.fields', u'Fields'), (u'ir.model.access', u'ir.model.access'), (u'ir.model.data', u'ir.model.data'), (u'ir.sequence.type', u'ir.sequence.type'), (u'ir.sequence', u'ir.sequence'), (u'ir.ui.menu', u'ir.ui.menu'), (u'ir.ui.view.custom', u'ir.ui.view.custom'), (u'ir.ui.view', u'ir.ui.view'), (u'ir.ui.view_sc', u'ir.ui.view_sc'), (u'ir.default', u'ir.default'), (u'ir.actions.actions', u'ir.actions.actions'), (u'ir.actions.report.custom', u'ir.actions.report.custom'), (u'ir.actions.report.xml', u'ir.actions.report.xml'), (u'ir.actions.act_window', u'ir.actions.act_window'), (u'ir.actions.act_window.view', u'ir.actions.act_window.view'), (u'ir.actions.wizard', u'ir.actions.wizard'), (u'ir.actions.url', u'ir.actions.url'), (u'ir.server.object.lines', u'ir.server.object.lines'), ...], 'string': u'Model', 'type': u'selection', 'views': {}}, 'name': {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'editable': True, 'link': 1, 'model': 'ir.filters', 'name': u'name', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, 'size': 64, ...}, 'user_id': {'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}}, values = {'model_id': 'crm.lead', 'user_id': ('1',)}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/widgets/form/_form.py in parse(self=Form, prefix='', root=<DOM Element: group>, fields={'context': {'required': True, 'selectable': True, 'string': u'Context Value', 'type': u'text', 'views': {}}, 'domain': {'required': True, 'selectable': True, 'string': u'Domain Value', 'type': u'text', 'views': {}}, 'model_id': {'required': True, 'selectable': True, 'selection': [(u'ir.model', u'Objects'), (u'ir.model.grid', u'Objects Security Grid'), (u'ir.model.fields', u'Fields'), (u'ir.model.access', u'ir.model.access'), (u'ir.model.data', u'ir.model.data'), (u'ir.sequence.type', u'ir.sequence.type'), (u'ir.sequence', u'ir.sequence'), (u'ir.ui.menu', u'ir.ui.menu'), (u'ir.ui.view.custom', u'ir.ui.view.custom'), (u'ir.ui.view', u'ir.ui.view'), (u'ir.ui.view_sc', u'ir.ui.view_sc'), (u'ir.default', u'ir.default'), (u'ir.actions.actions', u'ir.actions.actions'), (u'ir.actions.report.custom', u'ir.actions.report.custom'), (u'ir.actions.report.xml', u'ir.actions.report.xml'), (u'ir.actions.act_window', u'ir.actions.act_window'), (u'ir.actions.act_window.view', u'ir.actions.act_window.view'), (u'ir.actions.wizard', u'ir.actions.wizard'), (u'ir.actions.url', u'ir.actions.url'), (u'ir.server.object.lines', u'ir.server.object.lines'), ...], 'string': u'Model', 'type': u'selection', 'views': {}}, 'name': {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'editable': True, 'link': 1, 'model': 'ir.filters', 'name': u'name', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, 'size': 64, ...}, 'user_id': {'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}}, values={'model_id': 'crm.lead', 'user_id': ('1',)})
927 self.view_fields.append(name)
928
929 field = self._make_field_widget(fields[name], values.get(name))
930 views.append(field)
931
field = Char, self = Form, self._make_field_widget = <bound method Form._make_field_widget of Form>, fields = {'context': {'required': True, 'selectable': True, 'string': u'Context Value', 'type': u'text', 'views': {}}, 'domain': {'required': True, 'selectable': True, 'string': u'Domain Value', 'type': u'text', 'views': {}}, 'model_id': {'required': True, 'selectable': True, 'selection': [(u'ir.model', u'Objects'), (u'ir.model.grid', u'Objects Security Grid'), (u'ir.model.fields', u'Fields'), (u'ir.model.access', u'ir.model.access'), (u'ir.model.data', u'ir.model.data'), (u'ir.sequence.type', u'ir.sequence.type'), (u'ir.sequence', u'ir.sequence'), (u'ir.ui.menu', u'ir.ui.menu'), (u'ir.ui.view.custom', u'ir.ui.view.custom'), (u'ir.ui.view', u'ir.ui.view'), (u'ir.ui.view_sc', u'ir.ui.view_sc'), (u'ir.default', u'ir.default'), (u'ir.actions.actions', u'ir.actions.actions'), (u'ir.actions.report.custom', u'ir.actions.report.custom'), (u'ir.actions.report.xml', u'ir.actions.report.xml'), (u'ir.actions.act_window', u'ir.actions.act_window'), (u'ir.actions.act_window.view', u'ir.actions.act_window.view'), (u'ir.actions.wizard', u'ir.actions.wizard'), (u'ir.actions.url', u'ir.actions.url'), (u'ir.server.object.lines', u'ir.server.object.lines'), ...], 'string': u'Model', 'type': u'selection', 'views': {}}, 'name': {'context': {'_terp_view_name': 'Manage Filters', 'active_id': False, 'active_ids': [], 'active_model': False, 'client': 'web', 'lang': u'en_US', 'section_id': False, 'tz': False}, 'editable': True, 'link': 1, 'model': 'ir.filters', 'name': u'name', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, 'size': 64, ...}, 'user_id': {'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}}, name = u'user_id', values = {'model_id': 'crm.lead', 'user_id': ('1',)}, values.get = <built-in method get of dict object>
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/widgets/form/_form.py in _make_field_widget(self=Form, attrs={'context': {}, 'domain': [], 'editable': True, 'help': u'False means for every user', 'link': '1', 'model': 'ir.filters', 'name': u'user_id', 'prefix': '', 'relation': u'res.users', 'select': u'1', ...}, value=('1',))
996
997 if isinstance(field, TinyInputWidget):
998 field.set_value(value)
999
1000 # update the record data
field = M2O, field.set_value = <bound method M2O.set_value of M2O>, value = ('1',)
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0devdev_20100902-py2.6.egg/openerp-web/addons/openerp/widgets/form/_m2o.py in set_value(self=M2O, value=('1',))
64
65 if value and isinstance(value, (tuple, list)):
66 self.default, self.text = value
67 elif value and isinstance(value, basestring):
68 self.text = value
self = M2O, self.default = None, self.text = None, value = ('1',)
<type 'exceptions.ValueError'>: need more than 1 value to unpack
args = ('need more than 1 value to unpack',)
message = 'need more than 1 value to unpack'