[FIX] creation of action ir_values

bzr revid: xmo@openerp.com-20120608092830-8bm4hrssikgyfhsa
This commit is contained in:
Xavier Morel
2012-06-08 11:28:30 +02:00
parent 6c4568c548
commit c1858eefaa
+2 -1
View File
@@ -135,8 +135,9 @@ class ir_values(osv.osv):
def onchange_action_id(self, cr, uid, ids, action_id, context=None):
if not action_id: return {}
act = self.pool.get('ir.actions.actions').browse(cr, uid, action_id, context=context)
model = act.type if act.type != 'ir.actions.act_url' else 'ir.actions.url'
return {
'value': {'value_unpickle': act.type+','+str(act.id)}
'value': {'value_unpickle': "%s,%d" % (model, act.id)}
}
_columns = {