From afa60ebc74e8ae89136b45e607144d5804b5ce4a Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Thu, 23 Aug 2012 16:26:56 +0200 Subject: [PATCH] [FIX] lp: 1039013, where an id is given to name_get instead of a list of ids lp bug: https://launchpad.net/bugs/1039013 fixed bzr revid: qdp-launchpad@openerp.com-20120823142656-nsqml3jnyylpgzxu --- addons/account/account.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/account.py b/addons/account/account.py index fa30b20f2ca..907e6207380 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -582,6 +582,8 @@ class account_account(osv.osv): def name_get(self, cr, uid, ids, context=None): if not ids: return [] + if isinstance(ids, (int, long)): + ids = [ids] reads = self.read(cr, uid, ids, ['name', 'code'], context=context) res = [] for record in reads: