[IMP] base: Load web_icon_data for root menus

The enterprise frontend appswitcher needs to load the icons for the
root menus too
This commit is contained in:
qsm-odoo
2015-08-14 13:56:50 +02:00
parent 07c020d7e5
commit ef2df79c66
+1 -1
View File
@@ -259,7 +259,7 @@ class ir_ui_menu(osv.osv):
@api.cr_uid_context
@tools.ormcache_context('uid', keys=('lang',))
def load_menus_root(self, cr, uid, context=None):
fields = ['name', 'sequence', 'parent_id', 'action']
fields = ['name', 'sequence', 'parent_id', 'action', 'web_icon_data']
menu_root_ids = self.get_user_roots(cr, uid, context=context)
menu_roots = self.read(cr, uid, menu_root_ids, fields, context=context) if menu_root_ids else []
return {