summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Francois <tfr@openerp.com>2011-02-22 14:56:31 +0100
committerThibault Francois <tfr@openerp.com>2011-02-22 14:56:31 +0100
commit8591fdd015c6eaec31cf8fb2cffc123ff5ece8ba (patch)
tree7ef2f93094e719010bacce00e252fc68fe7de336
parent3270e0c39681c08722e2d7e4c2618aaa918ecd75 (diff)
parent45fe52db819f3665066d3bc807976384d02847ae (diff)
[MERGE] fix of bug 721894
bzr revid: tfr@openerp.com-20110222135631-v1w6q2db2t2q1b3c
-rw-r--r--addons/survey/wizard/survey_answer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/survey/wizard/survey_answer.py b/addons/survey/wizard/survey_answer.py
index 0d541079ba6..30cb9af1175 100644
--- a/addons/survey/wizard/survey_answer.py
+++ b/addons/survey/wizard/survey_answer.py
@@ -242,7 +242,7 @@ class survey_question_wiz(osv.osv_memory):
etree.SubElement(xml_group, 'separator', {'string': tools.ustr(col.title),'colspan': '1'})
for row in ans_ids:
etree.SubElement(xml_group, 'label', {'string': to_xml(tools.ustr(row.answer)) +' :-', 'align': '0.0'})
- for col in que_col_head.read(cr, uid, que_rec.column_heading_ids):
+ for col in que_col_head.browse(cr, uid, [head.id for head in que_rec.column_heading_ids]):
etree.SubElement(xml_group, 'field', {'readonly' :str(readonly), 'name': tools.ustr(que.id) + "_" + tools.ustr(row.id) + "_" + tools.ustr(col.id), 'nolabel':"1"})
fields[tools.ustr(que.id) + "_" + tools.ustr(row.id) + "_" + tools.ustr(col.id)] = {'type':'boolean', 'string': col.title}