bzr revid: fp@tinyerp.com-20081017095914-xidmsrlw33vy5gkz
This commit is contained in:
Fabien Pinckaers
2008-10-17 11:59:14 +02:00
parent 64927adea0
commit aa4bca4cf8
3 changed files with 7 additions and 9 deletions
+4 -1
View File
@@ -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()