From 9b76b258ca8f68a9f367ad79a28828e9136be8c2 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Wed, 26 Feb 2014 12:10:19 +0100 Subject: [PATCH] [FIX] missing check on name_get in claim_rma --- crm_claim_rma/crm_claim_rma.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crm_claim_rma/crm_claim_rma.py b/crm_claim_rma/crm_claim_rma.py index b818a4be..0a3197b2 100644 --- a/crm_claim_rma/crm_claim_rma.py +++ b/crm_claim_rma/crm_claim_rma.py @@ -343,6 +343,8 @@ class crm_claim(orm.Model): def name_get(self, cr, uid, ids, context=None): res = [] + if isinstance(ids, (int, long)): + ids = [ids] for claim in self.browse(cr, uid, ids, context=context): res.append((claim.id, '[' + claim.number + '] ' + claim.name)) return res