← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 800006] [NEW] Error en Dashboard Cliente Web

 

Public bug reported:

type 'exceptions.ValueError'>	Python 2.6.6: /usr/bin/python2.6
Mon Jun 20 21:43:00 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-3.1.2-py2.6.egg/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/execute')
  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..../CherryPy-3.1.2-py2.6.egg/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-3.1.2-py2.6.egg/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', 'execute'), self.kwargs = {'action': {'auto_refresh': 0, 'auto_search': True, 'context': u"{'search_default_partner_id': ['active_id']}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'groups_id': [8], 'help': False, 'id': 435, 'limit': 0, ...}, 'data': {'context': {'search_default_partner_id': ['active_id']}, 'home_action': True}, 'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object>, 'openerp', 'execute'), **kw={'_': '1308620570712', 'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'})
  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 = '/usr/local/lib/python2.6/dist-packages/openerp_w...s/widget_ckeditor/widgets/templates/ckeditor.mako', func = <function default>, args = (<openobject.controllers._root.Root object>, 'openerp', 'execute'), kw = {'_': '1308620570712', 'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/openobject/controllers/_root.py in default(self=<openobject.controllers._root.Root object>, *args=('openerp', 'execute'), **kw={'_': '1308620570712', 'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'})
   85             request.handler = cherrypy.NotFound()
   86 
   87         return request.handler()
   88 
   89     def find_handler(self):
request = <cherrypy._ThreadLocalProxy object>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
 /usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/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 index>, self.args = (), self.kwargs = {'action': {'auto_refresh': 0, 'auto_search': True, 'context': u"{'search_default_partner_id': ['active_id']}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'groups_id': [8], 'help': False, 'id': 435, 'limit': 0, ...}, 'data': {'context': {'search_default_partner_id': ['active_id']}, 'home_action': True}, 'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'})
  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 Execute.index of <openerp.controllers.execute.Execute object>>, args = (), kw = {'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.execute.Execute object>,), **kw={'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'})
  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 = '/usr/local/lib/python2.6/dist-packages/openerp_w...s/widget_ckeditor/widgets/templates/ckeditor.mako', func = <function index>, args = (<openerp.controllers.execute.Execute object>,), kw = {'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/execute.py in index(self=<openerp.controllers.execute.Execute object>, payload='eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA')
   17             zlib.decompress(
   18                 base64.urlsafe_b64decode(payload)))
   19         action, data = decoded_payload['action'], decoded_payload['data']
   20         cherrypy.request.params.update(decoded_payload)
   21         return actions.execute(action, **data)
global actions = <module 'openerp.controllers.actions' from '/usr...y2.6.egg/addons/openerp/controllers/actions.pyc'>, actions.execute = <function execute>, action = {'auto_refresh': 0, 'auto_search': True, 'context': u"{'search_default_partner_id': ['active_id']}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'groups_id': [8], 'help': False, 'id': 435, 'limit': 0, ...}, data = {'context': {'search_default_partner_id': ['active_id']}, 'home_action': True}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/actions.py in execute(action={'auto_refresh': 0, 'auto_search': True, 'context': u"{'search_default_partner_id': ['active_id']}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'groups_id': [8], 'help': False, 'id': 435, 'limit': 0, ...}, **data={'context': {'search_default_partner_id': ['active_id']}, 'home_action': True, 'limit': 0, 'res_id': None, 'res_model': u'sale.order', 'search_view': None, 'view_mode': u'tree,form', 'view_type': u'form'})
  380 
  381     action_executor = ACTIONS_BY_TYPE[action['type']]
  382     return action_executor(action, data)
  383 
  384 def execute_url(**data):
action_executor = <function act_window>, action = {'auto_refresh': 0, 'auto_search': True, 'context': u"{'search_default_partner_id': ['active_id']}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'groups_id': [8], 'help': False, 'id': 435, 'limit': 0, ...}, data = {'context': {'search_default_partner_id': ['active_id']}, 'home_action': True, 'limit': 0, 'res_id': None, 'res_model': u'sale.order', 'search_view': None, 'view_mode': u'tree,form', 'view_type': u'form'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/actions.py in act_window(action={'auto_refresh': 0, 'auto_search': True, 'context': u"{'search_default_partner_id': ['active_id']}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'groups_id': [8], 'help': False, 'id': 435, 'limit': 0, ...}, data={'context': {'search_default_partner_id': ['active_id']}, 'home_action': True, 'limit': 0, 'res_id': None, 'res_model': u'sale.order', 'search_view': None, 'view_mode': u'tree,form', 'view_type': u'form'})
  268                           search_view=data['search_view'],
  269                           context_menu=data.get('context_menu'),
  270                           display_menu_tip=display_menu_tip)
  271 
  272 def server(action, data):
display_menu_tip = False
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/actions.py in execute_window(view_ids=[False, False], model=u'sale.order', res_id=None, domain=[], view_type=u'form', context={'_terp_view_name': u'Ventas', 'active_id': False, 'active_ids': [], 'active_model': False, 'search_default_partner_id': ['active_id']}, mode=[u'tree', u'form'], name=u'Ventas', target=u'current', limit=0, search_view=None, context_menu=None, display_menu_tip=False)
   83         params.view_mode=mode
   84 
   85         return Form().create(params)
   86 
   87     elif view_type == 'tree':
global Form = <class 'openerp.controllers.form.Form'>, ).create = <unbound method Form.create>, params = {'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/utils.py in wrapper(*args=({'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None},), **kw={})
  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 Form.create of <openerp.controllers.form.Form object>>, args = ({'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None},), kw = {}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.form.Form object>, {'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}), **kw={})
  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 = '/usr/local/lib/python2.6/dist-packages/openerp_w...s/widget_ckeditor/widgets/templates/ckeditor.mako', func = <function create>, args = (<openerp.controllers.form.Form object>, {'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}), kw = {}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/form.py in create(self=<openerp.controllers.form.Form object>, params={'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}, tg_errors=None)
  193         if params.view_type == 'tree':
  194             params.editable = True
  195         form = self.create_form(params, tg_errors)
  196 
  197         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': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}, tg_errors = None
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/form.py in create_form(self=<openerp.controllers.form.Form object>, params={'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}, 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")
global tw = <module 'openerp.widgets' from '/usr/local/lib/p...1-py2.6.egg/addons/openerp/widgets/__init__.pyc'>, tw.form_view = <module 'openerp.widgets.form_view' from '/usr/l...-py2.6.egg/addons/openerp/widgets/form_view.pyc'>, tw.form_view.ViewForm = <class 'openerp.widgets.form_view.ViewForm'>, params = {'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}, name undefined, action undefined
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/widgets/form_view.py in __init__(self=ViewForm, params={'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
   79             self.search = Search(source=params.source, model=params.model, domain=search_param, context=params.context, values=params.search_data or {},
   80                                  filter_domain=params.filter_domain or [], search_view=params.search_view, group_by_ctx=params.group_by_ctx or [],
   81                                  **{'clear': params.get('_terp_clear'), 'search_view_id': search_view_id})
   82 
   83             cherrypy.request.custom_search_domain = self.search.listof_domain or []
params = {'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}, params.get = <built-in method get of TinyDict object>, search_view_id = None
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/widgets/search.py in __init__(self=Search, source=None, model=u'sale.order', domain=[], context={'_terp_view_name': u'Ventas', 'active_id': False, 'active_ids': [], 'active_model': False, 'search_default_partner_id': ['active_id']}, values={}, filter_domain=[], search_view=None, group_by_ctx=[], **kw={'clear': None, 'search_view_id': None})
  253             self.fields_list.sort(lambda x, y: cmp(x[1], y[1]))
  254 
  255         self.frame = self.parse(model, dom, self.fields, values)
  256         if self.frame:
  257             self.frame = self.frame[0]
self = Search, self.frame = None, self.parse = <bound method Search.parse of Search>, model = u'sale.order', dom = <xml.dom.minidom.Document instance>, self.fields = {'amount_tax': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe de los impuestos.', 'readonly': 1, 'selectable': True, ...}, 'amount_total': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe total.', 'readonly': 1, 'selectable': True, ...}, 'amount_untaxed': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe sin impuestos.', 'readonly': 1, 'selectable': True, ...}, 'client_order_ref': {'selectable': True, 'size': 64, 'string': u'Referencia cliente', 'type': u'char'}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'shop_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', 'readonly': True, ...}, 'create_date': {'help': u'Fecha en que se crea el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha creaci\xf3n', 'type': u'date'}, 'date_confirm': {'help': u'Fecha en la que se confirma el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha confirmaci\xf3n', 'type': u'date'}, 'date_order': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'sale.order', 'name': u'date_order', 'readonly': False, 'required': False, 'select': u'1', ...}, 'fiscal_position': {'context': {}, 'domain': [], 'relation': u'account.fiscal.position', 'selectable': True, 'string': u'Posici\xf3n fiscal', 'type': u'many2one'}, 'incoterm': {'context': {}, 'domain': [], 'help': u"Incoterm que significa 'T\xe9rminos de Comercio Int...enta que se utilizan en la transacci\xf3n comercial.", 'relation': u'stock.incoterms', 'selectable': True, 'string': u'Incoterm', 'type': u'many2one'}, ...}, values = {}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/widgets/search.py in parse(self=Search, model=u'sale.order', root=<xml.dom.minidom.Document instance>, fields={'amount_tax': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe de los impuestos.', 'readonly': 1, 'selectable': True, ...}, 'amount_total': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe total.', 'readonly': 1, 'selectable': True, ...}, 'amount_untaxed': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe sin impuestos.', 'readonly': 1, 'selectable': True, ...}, 'client_order_ref': {'selectable': True, 'size': 64, 'string': u'Referencia cliente', 'type': u'char'}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'shop_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', 'readonly': True, ...}, 'create_date': {'help': u'Fecha en que se crea el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha creaci\xf3n', 'type': u'date'}, 'date_confirm': {'help': u'Fecha en la que se confirma el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha confirmaci\xf3n', 'type': u'date'}, 'date_order': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'sale.order', 'name': u'date_order', 'readonly': False, 'required': False, 'select': u'1', ...}, 'fiscal_position': {'context': {}, 'domain': [], 'relation': u'account.fiscal.position', 'selectable': True, 'string': u'Posici\xf3n fiscal', 'type': u'many2one'}, 'incoterm': {'context': {}, 'domain': [], 'help': u"Incoterm que significa 'T\xe9rminos de Comercio Int...enta que se utilizan en la transacci\xf3n comercial.", 'relation': u'stock.incoterms', 'selectable': True, 'string': u'Incoterm', 'type': u'many2one'}, ...}, values={})
  314                 views.append(Element(children=
  315                                      self.parse(model=search_model, root=node,
  316                                                 fields=fields, values=values),
  317                                      **attrs))
  318 
fields = {'amount_tax': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe de los impuestos.', 'readonly': 1, 'selectable': True, ...}, 'amount_total': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe total.', 'readonly': 1, 'selectable': True, ...}, 'amount_untaxed': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe sin impuestos.', 'readonly': 1, 'selectable': True, ...}, 'client_order_ref': {'selectable': True, 'size': 64, 'string': u'Referencia cliente', 'type': u'char'}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'shop_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', 'readonly': True, ...}, 'create_date': {'help': u'Fecha en que se crea el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha creaci\xf3n', 'type': u'date'}, 'date_confirm': {'help': u'Fecha en la que se confirma el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha confirmaci\xf3n', 'type': u'date'}, 'date_order': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'sale.order', 'name': u'date_order', 'readonly': False, 'required': False, 'select': u'1', ...}, 'fiscal_position': {'context': {}, 'domain': [], 'relation': u'account.fiscal.position', 'selectable': True, 'string': u'Posici\xf3n fiscal', 'type': u'many2one'}, 'incoterm': {'context': {}, 'domain': [], 'help': u"Incoterm que significa 'T\xe9rminos de Comercio Int...enta que se utilizan en la transacci\xf3n comercial.", 'relation': u'stock.incoterms', 'selectable': True, 'string': u'Incoterm', 'type': u'many2one'}, ...}, values = {}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/widgets/search.py in parse(self=Search, model=u'res.partner', root=<DOM Element: search>, fields={'amount_tax': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe de los impuestos.', 'readonly': 1, 'selectable': True, ...}, 'amount_total': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe total.', 'readonly': 1, 'selectable': True, ...}, 'amount_untaxed': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe sin impuestos.', 'readonly': 1, 'selectable': True, ...}, 'client_order_ref': {'selectable': True, 'size': 64, 'string': u'Referencia cliente', 'type': u'char'}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'shop_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', 'readonly': True, ...}, 'create_date': {'help': u'Fecha en que se crea el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha creaci\xf3n', 'type': u'date'}, 'date_confirm': {'help': u'Fecha en la que se confirma el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha confirmaci\xf3n', 'type': u'date'}, 'date_order': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'sale.order', 'name': u'date_order', 'readonly': False, 'required': False, 'select': u'1', ...}, 'fiscal_position': {'context': {}, 'domain': [], 'relation': u'account.fiscal.position', 'selectable': True, 'string': u'Posici\xf3n fiscal', 'type': u'many2one'}, 'incoterm': {'context': {}, 'domain': [], 'help': u"Incoterm que significa 'T\xe9rminos de Comercio Int...enta que se utilizan en la transacci\xf3n comercial.", 'relation': u'stock.incoterms', 'selectable': True, 'string': u'Incoterm', 'type': u'many2one'}, ...}, values={})
  419                                     domain = [(name,fields[name].get('comparator','ilike'), defval)]
  420 
  421                             field.set_value(defval)
  422                             self.listof_domain += [i for i in domain if not i in self.listof_domain]
  423                             self.context.update(expr_eval(attrs.get('context',"{}"), {'self': default_search}))
field = M2O_search, field.set_value = <bound method M2O_search.set_value of M2O_search>, defval = ['active_id']
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/widgets/form/_m2o.py in set_value(self=M2O_search, value=['active_id'])
   56 
   57         if value and isinstance(value, (tuple, list)):
   58             self.default, self.text = value
   59         elif value and isinstance(value, basestring):
   60             self.text = value
self = M2O_search, self.default = None, self.text = None, value = ['active_id']

<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'

** Affects: openobject-addons
     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/800006

Title:
  Error en Dashboard Cliente Web

Status in OpenERP Modules (addons):
  New

Bug description:
  type 'exceptions.ValueError'>	Python 2.6.6: /usr/bin/python2.6
  Mon Jun 20 21:43:00 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-3.1.2-py2.6.egg/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/execute')
    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..../CherryPy-3.1.2-py2.6.egg/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-3.1.2-py2.6.egg/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', 'execute'), self.kwargs = {'action': {'auto_refresh': 0, 'auto_search': True, 'context': u"{'search_default_partner_id': ['active_id']}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'groups_id': [8], 'help': False, 'id': 435, 'limit': 0, ...}, 'data': {'context': {'search_default_partner_id': ['active_id']}, 'home_action': True}, 'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object>, 'openerp', 'execute'), **kw={'_': '1308620570712', 'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'})
    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 = '/usr/local/lib/python2.6/dist-packages/openerp_w...s/widget_ckeditor/widgets/templates/ckeditor.mako', func = <function default>, args = (<openobject.controllers._root.Root object>, 'openerp', 'execute'), kw = {'_': '1308620570712', 'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/openobject/controllers/_root.py in default(self=<openobject.controllers._root.Root object>, *args=('openerp', 'execute'), **kw={'_': '1308620570712', 'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'})
     85             request.handler = cherrypy.NotFound()
     86 
     87         return request.handler()
     88 
     89     def find_handler(self):
  request = <cherrypy._ThreadLocalProxy object>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
   /usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/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 index>, self.args = (), self.kwargs = {'action': {'auto_refresh': 0, 'auto_search': True, 'context': u"{'search_default_partner_id': ['active_id']}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'groups_id': [8], 'help': False, 'id': 435, 'limit': 0, ...}, 'data': {'context': {'search_default_partner_id': ['active_id']}, 'home_action': True}, 'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'})
    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 Execute.index of <openerp.controllers.execute.Execute object>>, args = (), kw = {'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.execute.Execute object>,), **kw={'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'})
    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 = '/usr/local/lib/python2.6/dist-packages/openerp_w...s/widget_ckeditor/widgets/templates/ckeditor.mako', func = <function index>, args = (<openerp.controllers.execute.Execute object>,), kw = {'payload': 'eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA'}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/execute.py in index(self=<openerp.controllers.execute.Execute object>, payload='eJyVkt1qwzAMhV-l9MYrlDLYBmMPsCcYuynFiFhpDf5DltuV...upd24KVm--mKDiRc1CBIwtPU5RY_6Z50mrAXlPyDD8A0zZtqA')
     17             zlib.decompress(
     18                 base64.urlsafe_b64decode(payload)))
     19         action, data = decoded_payload['action'], decoded_payload['data']
     20         cherrypy.request.params.update(decoded_payload)
     21         return actions.execute(action, **data)
  global actions = <module 'openerp.controllers.actions' from '/usr...y2.6.egg/addons/openerp/controllers/actions.pyc'>, actions.execute = <function execute>, action = {'auto_refresh': 0, 'auto_search': True, 'context': u"{'search_default_partner_id': ['active_id']}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'groups_id': [8], 'help': False, 'id': 435, 'limit': 0, ...}, data = {'context': {'search_default_partner_id': ['active_id']}, 'home_action': True}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/actions.py in execute(action={'auto_refresh': 0, 'auto_search': True, 'context': u"{'search_default_partner_id': ['active_id']}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'groups_id': [8], 'help': False, 'id': 435, 'limit': 0, ...}, **data={'context': {'search_default_partner_id': ['active_id']}, 'home_action': True, 'limit': 0, 'res_id': None, 'res_model': u'sale.order', 'search_view': None, 'view_mode': u'tree,form', 'view_type': u'form'})
    380 
    381     action_executor = ACTIONS_BY_TYPE[action['type']]
    382     return action_executor(action, data)
    383 
    384 def execute_url(**data):
  action_executor = <function act_window>, action = {'auto_refresh': 0, 'auto_search': True, 'context': u"{'search_default_partner_id': ['active_id']}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'groups_id': [8], 'help': False, 'id': 435, 'limit': 0, ...}, data = {'context': {'search_default_partner_id': ['active_id']}, 'home_action': True, 'limit': 0, 'res_id': None, 'res_model': u'sale.order', 'search_view': None, 'view_mode': u'tree,form', 'view_type': u'form'}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/actions.py in act_window(action={'auto_refresh': 0, 'auto_search': True, 'context': u"{'search_default_partner_id': ['active_id']}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'groups_id': [8], 'help': False, 'id': 435, 'limit': 0, ...}, data={'context': {'search_default_partner_id': ['active_id']}, 'home_action': True, 'limit': 0, 'res_id': None, 'res_model': u'sale.order', 'search_view': None, 'view_mode': u'tree,form', 'view_type': u'form'})
    268                           search_view=data['search_view'],
    269                           context_menu=data.get('context_menu'),
    270                           display_menu_tip=display_menu_tip)
    271 
    272 def server(action, data):
  display_menu_tip = False
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/actions.py in execute_window(view_ids=[False, False], model=u'sale.order', res_id=None, domain=[], view_type=u'form', context={'_terp_view_name': u'Ventas', 'active_id': False, 'active_ids': [], 'active_model': False, 'search_default_partner_id': ['active_id']}, mode=[u'tree', u'form'], name=u'Ventas', target=u'current', limit=0, search_view=None, context_menu=None, display_menu_tip=False)
     83         params.view_mode=mode
     84 
     85         return Form().create(params)
     86 
     87     elif view_type == 'tree':
  global Form = <class 'openerp.controllers.form.Form'>, ).create = <unbound method Form.create>, params = {'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/utils.py in wrapper(*args=({'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None},), **kw={})
    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 Form.create of <openerp.controllers.form.Form object>>, args = ({'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None},), kw = {}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.form.Form object>, {'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}), **kw={})
    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 = '/usr/local/lib/python2.6/dist-packages/openerp_w...s/widget_ckeditor/widgets/templates/ckeditor.mako', func = <function create>, args = (<openerp.controllers.form.Form object>, {'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}), kw = {}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/form.py in create(self=<openerp.controllers.form.Form object>, params={'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}, tg_errors=None)
    193         if params.view_type == 'tree':
    194             params.editable = True
    195         form = self.create_form(params, tg_errors)
    196 
    197         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': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}, tg_errors = None
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/controllers/form.py in create_form(self=<openerp.controllers.form.Form object>, params={'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}, 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")
  global tw = <module 'openerp.widgets' from '/usr/local/lib/p...1-py2.6.egg/addons/openerp/widgets/__init__.pyc'>, tw.form_view = <module 'openerp.widgets.form_view' from '/usr/l...-py2.6.egg/addons/openerp/widgets/form_view.pyc'>, tw.form_view.ViewForm = <class 'openerp.widgets.form_view.ViewForm'>, params = {'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}, name undefined, action undefined
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/widgets/form_view.py in __init__(self=ViewForm, params={'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
     79             self.search = Search(source=params.source, model=params.model, domain=search_param, context=params.context, values=params.search_data or {},
     80                                  filter_domain=params.filter_domain or [], search_view=params.search_view, group_by_ctx=params.group_by_ctx or [],
     81                                  **{'clear': params.get('_terp_clear'), 'search_view_id': search_view_id})
     82 
     83             cherrypy.request.custom_search_domain = self.search.listof_domain or []
  params = {'_terp_view_type': u'tree', '_terp_offset': 0, ..._view_ids': [False, False], 'context_menu': None}, params.get = <built-in method get of TinyDict object>, search_view_id = None
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/widgets/search.py in __init__(self=Search, source=None, model=u'sale.order', domain=[], context={'_terp_view_name': u'Ventas', 'active_id': False, 'active_ids': [], 'active_model': False, 'search_default_partner_id': ['active_id']}, values={}, filter_domain=[], search_view=None, group_by_ctx=[], **kw={'clear': None, 'search_view_id': None})
    253             self.fields_list.sort(lambda x, y: cmp(x[1], y[1]))
    254 
    255         self.frame = self.parse(model, dom, self.fields, values)
    256         if self.frame:
    257             self.frame = self.frame[0]
  self = Search, self.frame = None, self.parse = <bound method Search.parse of Search>, model = u'sale.order', dom = <xml.dom.minidom.Document instance>, self.fields = {'amount_tax': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe de los impuestos.', 'readonly': 1, 'selectable': True, ...}, 'amount_total': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe total.', 'readonly': 1, 'selectable': True, ...}, 'amount_untaxed': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe sin impuestos.', 'readonly': 1, 'selectable': True, ...}, 'client_order_ref': {'selectable': True, 'size': 64, 'string': u'Referencia cliente', 'type': u'char'}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'shop_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', 'readonly': True, ...}, 'create_date': {'help': u'Fecha en que se crea el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha creaci\xf3n', 'type': u'date'}, 'date_confirm': {'help': u'Fecha en la que se confirma el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha confirmaci\xf3n', 'type': u'date'}, 'date_order': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'sale.order', 'name': u'date_order', 'readonly': False, 'required': False, 'select': u'1', ...}, 'fiscal_position': {'context': {}, 'domain': [], 'relation': u'account.fiscal.position', 'selectable': True, 'string': u'Posici\xf3n fiscal', 'type': u'many2one'}, 'incoterm': {'context': {}, 'domain': [], 'help': u"Incoterm que significa 'T\xe9rminos de Comercio Int...enta que se utilizan en la transacci\xf3n comercial.", 'relation': u'stock.incoterms', 'selectable': True, 'string': u'Incoterm', 'type': u'many2one'}, ...}, values = {}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/widgets/search.py in parse(self=Search, model=u'sale.order', root=<xml.dom.minidom.Document instance>, fields={'amount_tax': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe de los impuestos.', 'readonly': 1, 'selectable': True, ...}, 'amount_total': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe total.', 'readonly': 1, 'selectable': True, ...}, 'amount_untaxed': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe sin impuestos.', 'readonly': 1, 'selectable': True, ...}, 'client_order_ref': {'selectable': True, 'size': 64, 'string': u'Referencia cliente', 'type': u'char'}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'shop_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', 'readonly': True, ...}, 'create_date': {'help': u'Fecha en que se crea el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha creaci\xf3n', 'type': u'date'}, 'date_confirm': {'help': u'Fecha en la que se confirma el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha confirmaci\xf3n', 'type': u'date'}, 'date_order': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'sale.order', 'name': u'date_order', 'readonly': False, 'required': False, 'select': u'1', ...}, 'fiscal_position': {'context': {}, 'domain': [], 'relation': u'account.fiscal.position', 'selectable': True, 'string': u'Posici\xf3n fiscal', 'type': u'many2one'}, 'incoterm': {'context': {}, 'domain': [], 'help': u"Incoterm que significa 'T\xe9rminos de Comercio Int...enta que se utilizan en la transacci\xf3n comercial.", 'relation': u'stock.incoterms', 'selectable': True, 'string': u'Incoterm', 'type': u'many2one'}, ...}, values={})
    314                 views.append(Element(children=
    315                                      self.parse(model=search_model, root=node,
    316                                                 fields=fields, values=values),
    317                                      **attrs))
    318 
  fields = {'amount_tax': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe de los impuestos.', 'readonly': 1, 'selectable': True, ...}, 'amount_total': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe total.', 'readonly': 1, 'selectable': True, ...}, 'amount_untaxed': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe sin impuestos.', 'readonly': 1, 'selectable': True, ...}, 'client_order_ref': {'selectable': True, 'size': 64, 'string': u'Referencia cliente', 'type': u'char'}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'shop_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', 'readonly': True, ...}, 'create_date': {'help': u'Fecha en que se crea el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha creaci\xf3n', 'type': u'date'}, 'date_confirm': {'help': u'Fecha en la que se confirma el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha confirmaci\xf3n', 'type': u'date'}, 'date_order': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'sale.order', 'name': u'date_order', 'readonly': False, 'required': False, 'select': u'1', ...}, 'fiscal_position': {'context': {}, 'domain': [], 'relation': u'account.fiscal.position', 'selectable': True, 'string': u'Posici\xf3n fiscal', 'type': u'many2one'}, 'incoterm': {'context': {}, 'domain': [], 'help': u"Incoterm que significa 'T\xe9rminos de Comercio Int...enta que se utilizan en la transacci\xf3n comercial.", 'relation': u'stock.incoterms', 'selectable': True, 'string': u'Incoterm', 'type': u'many2one'}, ...}, values = {}
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/widgets/search.py in parse(self=Search, model=u'res.partner', root=<DOM Element: search>, fields={'amount_tax': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe de los impuestos.', 'readonly': 1, 'selectable': True, ...}, 'amount_total': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe total.', 'readonly': 1, 'selectable': True, ...}, 'amount_untaxed': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_amount_all', 'help': u'El importe sin impuestos.', 'readonly': 1, 'selectable': True, ...}, 'client_order_ref': {'selectable': True, 'size': 64, 'string': u'Referencia cliente', 'type': u'char'}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'shop_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', 'readonly': True, ...}, 'create_date': {'help': u'Fecha en que se crea el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha creaci\xf3n', 'type': u'date'}, 'date_confirm': {'help': u'Fecha en la que se confirma el pedido de venta.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Fecha confirmaci\xf3n', 'type': u'date'}, 'date_order': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'sale.order', 'name': u'date_order', 'readonly': False, 'required': False, 'select': u'1', ...}, 'fiscal_position': {'context': {}, 'domain': [], 'relation': u'account.fiscal.position', 'selectable': True, 'string': u'Posici\xf3n fiscal', 'type': u'many2one'}, 'incoterm': {'context': {}, 'domain': [], 'help': u"Incoterm que significa 'T\xe9rminos de Comercio Int...enta que se utilizan en la transacci\xf3n comercial.", 'relation': u'stock.incoterms', 'selectable': True, 'string': u'Incoterm', 'type': u'many2one'}, ...}, values={})
    419                                     domain = [(name,fields[name].get('comparator','ilike'), defval)]
    420 
    421                             field.set_value(defval)
    422                             self.listof_domain += [i for i in domain if not i in self.listof_domain]
    423                             self.context.update(expr_eval(attrs.get('context',"{}"), {'self': default_search}))
  field = M2O_search, field.set_value = <bound method M2O_search.set_value of M2O_search>, defval = ['active_id']
   /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.1-py2.6.egg/addons/openerp/widgets/form/_m2o.py in set_value(self=M2O_search, value=['active_id'])
     56 
     57         if value and isinstance(value, (tuple, list)):
     58             self.default, self.text = value
     59         elif value and isinstance(value, basestring):
     60             self.text = value
  self = M2O_search, self.default = None, self.text = None, value = ['active_id']

  <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'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/800006/+subscriptions


Follow ups

References