summaryrefslogtreecommitdiff
path: root/bin/tools
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2008-10-17 11:59:14 +0200
committerFabien Pinckaers <fp@tinyerp.com>2008-10-17 11:59:14 +0200
commitaa4bca4cf8fa2cb29ef43d68dabef2215ed74cd8 (patch)
treeb08704efbd67b6904692a3ab692f89c0404f26f5 /bin/tools
parent64927adea053b3af678bb96daefc6844a7d98067 (diff)
improve
bzr revid: fp@tinyerp.com-20081017095914-xidmsrlw33vy5gkz
Diffstat (limited to 'bin/tools')
-rw-r--r--bin/tools/convert.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/tools/convert.py b/bin/tools/convert.py
index 437ebb2f375..18d79af3d0e 100644
--- a/bin/tools/convert.py
+++ b/bin/tools/convert.py
@@ -507,7 +507,10 @@ form: module.record_id""" % (xml_id,)
if a_type=='act_window':
a_id = self.id_get(cr, 'ir.actions.%s'% a_type, a_action)
cr.execute('select view_type,view_mode,name,view_id,target from ir_act_window where id=%d', (int(a_id),))
- action_type,action_mode,action_name,view_id,target = cr.fetchone()
+ rrres = cr.fetchone()
+ assert rrres, "No window action defined for this id %s !\n" \
+ "Verify that this is a window action or add a type argument." % (a_action,)
+ action_type,action_mode,action_name,view_id,target = rrres
if view_id:
cr.execute('SELECT type FROM ir_ui_view WHERE id=%d', (int(view_id),))
action_mode, = cr.fetchone()