diff options
| author | Raphaƫl Valyi - http://www.akretion.com <> | 2011-02-22 10:33:38 +0530 |
|---|---|---|
| committer | Jigar Amin <jam@tinyerp.com> | 2011-02-22 10:33:38 +0530 |
| commit | 6f7833425252a33cdbba464efbfa5a4e4e0abb18 (patch) | |
| tree | 3fa20c2cc84fc6dc4ff358b8f6d338ca9f35bbb7 | |
| parent | 91c1768528c3ae07305bf5cf460b40bd1b9b6c00 (diff) | |
[BUG/FIX] lp:721894
lp bug: https://launchpad.net/bugs/721894 fixed
bzr revid: jam@tinyerp.com-20110222050338-9az2tu3b0ovqylr0
| -rw-r--r-- | addons/survey/wizard/survey_answer.py | 2 |
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} |
