60
60
pool = pooler.get_pool(cr.dbname)
61
61
report = pool.get(data['model']).read(cr, uid, data['id'], ['report_wizard'], context=context)
62
62
if report['report_wizard']:
63
pool.get('ir.actions.act_window').unlink(cr, uid, data['report_action_id'], context=context)
63
pool.get('ir.actions.act_window').unlink(cr, uid, [data['report_action_id']], context=context)
65
65
event_id = pool.get('ir.values').search(cr, uid, [('value','=','ir.actions.report.xml,%d' % data['id'])])[0]
66
66
res = ir_del(cr, uid, event_id)