diff options
Diffstat (limited to 'bin/tools/convert.py')
| -rw-r--r-- | bin/tools/convert.py | 5 |
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() |
