[FIX] crm_profiling: query parameter
authorChristophe Simonis <chs@openerp.com>
Fri, 18 Jun 2010 08:28:36 +0000 (10:28 +0200)
committerChristophe Simonis <chs@openerp.com>
Fri, 18 Jun 2010 08:28:36 +0000 (10:28 +0200)
bzr revid: chs@openerp.com-20100618082836-wd3ej6tobx5ukj2z

addons/crm_profiling/crm_profiling.py

index a147414..86cd41c 100644 (file)
@@ -35,7 +35,7 @@ def _get_answers(cr, uid, ids):
     from profile_question_yes_rel
     where profile IN %s"""
 
-    cr.execute(query, (ids,))
+    cr.execute(query, (tuple(ids),))
     ans_yes = [x[0] for x in cr.fetchall()]
 
     query = """