[FIX] email_template: fix wrong return types for name_get

bzr revid: odo@openerp.com-20100819132022-c28vwc7cvyvgj8yz
This commit is contained in:
Olivier Dony
2010-08-19 15:20:22 +02:00
parent 773a00e724
commit 9dad4a098e
@@ -133,7 +133,7 @@ class email_template_account(osv.osv):
]
def name_get(self, cr, uid, ids, context=None):
return dict([(a["id"], "%s (%s)" % (a['email_id'], a['name'])) for a in self.read(cr, uid, ids, ['name', 'email_id'], context=context)])
return [(a["id"], "%s (%s)" % (a['email_id'], a['name'])) for a in self.read(cr, uid, ids, ['name', 'email_id'], context=context)]
def _constraint_unique(self, cursor, user, ids):
"""