From a452f024e818e5bcb3626838849d05d6437674d5 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Thu, 15 Jan 2009 18:46:09 +0100 Subject: [PATCH] bugfix bzr revid: fp@tinyerp.com-20090115174609-gq6ydox84dsafr9o --- addons/crm_profiling/crm_profiling.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/crm_profiling/crm_profiling.py b/addons/crm_profiling/crm_profiling.py index 023af843ba8..cbb9bfe481f 100644 --- a/addons/crm_profiling/crm_profiling.py +++ b/addons/crm_profiling/crm_profiling.py @@ -132,7 +132,7 @@ class questionnaire(osv.osv): select name, id from crm_profiling_question where id in ( select question from profile_questionnaire_quest_rel where questionnaire = %s)""" - res = cr.execute(query, data['form']['questionnaire_name']) + res = cr.execute(query, (data['form']['questionnaire_name'],)) result = cr.fetchall() quest_fields={} quest_form=''' @@ -175,7 +175,7 @@ class partner(osv.osv): temp.append(data['form'][x]) query = "select answer from partner_question_rel where partner=%s" - cr.execute(query, data['id']) + cr.execute(query, (data['id'],)) for x in cr.fetchall(): temp.append(x[0])