128
128
# VIEWS AND REPORTS AND MENUS RELATED TO ONE SPECIFIC MODULE
129
129
view_id = model_data_obj.search(
130
130
cr, uid, [('module', 'in', mnames.keys()),
131
('model', 'in', ('ir.ui.view', 'ir.actions.report.xml', 'ir.ui.menu', 'ir.actions.act_window'))])
131
('model', 'in', ('ir.ui.view', 'ir.actions.report.xml',
132
133
# ('model','in',('ir.ui.view','ir.actions.report.xml','ir.ui.menu','ir.actions.act_window'))])
133
134
for data_id in model_data_obj.browse(cr, uid, view_id, context):
134
135
# We use try except, because views or menus may not exist