[IMP] core: removed a filter on null IDs as it hides a possible problem (the very fact they are null).
bzr revid: vmt@openerp.com-20120814100007-cppdpazde5oe0khl
This commit is contained in:
parent
7a0abed231
commit
1182be4291
|
@ -139,17 +139,17 @@ class module(osv.osv):
|
|||
# We use try except, because views or menus may not exist.
|
||||
try:
|
||||
res_mod_dic = res[module_rec.id]
|
||||
view_ids = filter(None, imd_models.get('ir.ui.view', []))
|
||||
view_ids = imd_models.get('ir.ui.view', [])
|
||||
for v in view_obj.browse(cr, uid, view_ids, context=context):
|
||||
aa = v.inherit_id and '* INHERIT ' or ''
|
||||
res_mod_dic['views_by_module'].append(aa + v.name + '('+v.type+')')
|
||||
|
||||
report_ids = imd_models.get('ir.actions.report.xml', [])
|
||||
for rx in report_obj.browse(cr, uid, filter(None, report_ids), context=context):
|
||||
for rx in report_obj.browse(cr, uid, report_ids, context=context):
|
||||
res_mod_dic['reports_by_module'].append(rx.name)
|
||||
|
||||
menu_ids = imd_models.get('ir.ui.menu', [])
|
||||
for um in menu_obj.browse(cr, uid, filter(None, menu_ids), context=context):
|
||||
for um in menu_obj.browse(cr, uid, menu_ids, context=context):
|
||||
res_mod_dic['menus_by_module'].append(um.complete_name)
|
||||
except KeyError, e:
|
||||
_logger.warning(
|
||||
|
|
Loading…
Reference in New Issue