← Back to team overview

credativ team mailing list archive

[Bug 922472] [NEW] [trunk 6.1] ir_values crashes if no dashboard defined on main menu with web client

 

Public bug reported:

Hi,

Web client requests a dashboard to display it when you open the first
menu entry. If no dashboard is defined (can be reproduced by removing a
standard dashboard), you get this error:


Traceback (most recent call last):
  File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/osv/osv.py", line 175, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/addons/base/ir/ir_values.py", line 459, in get
    return self._map_legacy_model_list(models, do_get, merge_results=True)
  File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/addons/base/ir/ir_values.py", line 416, in _map_legacy_model_list
    result = map_fn(model, res_id)
  File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/addons/base/ir/ir_values.py", line 458, in do_get
    return self.get_actions(cr, uid, action_slot=key2, model=model, res_id=res_id, context=context)
  File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/addons/base/ir/ir_values.py", line 379, in get_actions
    action_model,id = action['value'].split(',')
AttributeError: 'NoneType' object has no attribute 'split'
[2012-01-27 08:35:22,878][?] DEBUG_RPC:exception:u"'NoneType' object has no attribute 'split'"


kr,
J-E

** Affects: openobject-server
     Importance: Undecided
         Status: New


** Tags: mso

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/922472

Title:
  [trunk 6.1] ir_values crashes if no dashboard defined on main menu
  with web client

Status in OpenERP Server:
  New

Bug description:
  Hi,

  Web client requests a dashboard to display it when you open the first
  menu entry. If no dashboard is defined (can be reproduced by removing
  a standard dashboard), you get this error:

  
  Traceback (most recent call last):
    File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/osv/osv.py", line 120, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/osv/osv.py", line 175, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/addons/base/ir/ir_values.py", line 459, in get
      return self._map_legacy_model_list(models, do_get, merge_results=True)
    File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/addons/base/ir/ir_values.py", line 416, in _map_legacy_model_list
      result = map_fn(model, res_id)
    File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/addons/base/ir/ir_values.py", line 458, in do_get
      return self.get_actions(cr, uid, action_slot=key2, model=model, res_id=res_id, context=context)
    File "/home/jbaudoux/OpenERP/src/server/trunk/openerp/addons/base/ir/ir_values.py", line 379, in get_actions
      action_model,id = action['value'].split(',')
  AttributeError: 'NoneType' object has no attribute 'split'
  [2012-01-27 08:35:22,878][?] DEBUG_RPC:exception:u"'NoneType' object has no attribute 'split'"

  
  kr,
  J-E

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


Follow ups

References