[IMP]: wiki: Minor improvement

bzr revid: rpa@tinyerp.com-20100413050208-2a6oally83d65u4x
This commit is contained in:
rpa (Open ERP)
2010-04-13 10:32:08 +05:30
parent 8c34d46921
commit de729f8880
+1 -3
View File
@@ -186,7 +186,6 @@ class Wiki(osv.osv):
"""
pages = self.pool.get('wiki.wiki').search(cr, uid, [('name', '=', 'Basic Wiki Editing')])
if not pages:
# return {}
raise osv.except_osv(_('Warning !'), _("No Help page is defined"))
value = {
'view_type': 'form',
@@ -195,9 +194,8 @@ class Wiki(osv.osv):
'view_id': False,
'res_id': pages[0],
'type': 'ir.actions.act_window',
'nodestroy':True,
'nodestroy': True,
}
return value
Wiki()