From db86fd55ffd8902d4a86143a87e1e90e7a319c2b Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Tue, 5 Mar 2013 13:40:54 +0100 Subject: [PATCH] *** bzr revid: chm@openerp.com-20130305124054-5vodppd1f4vencfs --- addons/survey/survey.py | 2 +- addons/survey/wizard/survey_answer.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/survey/survey.py b/addons/survey/survey.py index 5f080975711..9e556138dff 100644 --- a/addons/survey/survey.py +++ b/addons/survey/survey.py @@ -347,7 +347,7 @@ class survey_question(osv.osv): 'sequence': fields.integer('Sequence'), 'tot_resp': fields.function(_calc_response, string="Total Answer"), 'survey': fields.related('page_id', 'survey_id', type='many2one', relation='survey', string='Survey'), - 'descriptive_text': fields.text('Descriptive Text', size=255, translate=True), + 'descriptive_text': fields.text('Descriptive Text', translate=True), 'column_heading_ids': fields.one2many('survey.question.column.heading', 'question_id', ' Column heading'), 'type': fields.selection([('multiple_choice_only_one_ans', 'Multiple Choice (Only One Answer)'), ('multiple_choice_multiple_ans', 'Multiple Choice (Multiple Answer)'), diff --git a/addons/survey/wizard/survey_answer.py b/addons/survey/wizard/survey_answer.py index 9231ff3dc79..0e1e17d7a45 100644 --- a/addons/survey/wizard/survey_answer.py +++ b/addons/survey/wizard/survey_answer.py @@ -175,7 +175,8 @@ class survey_question_wiz(osv.osv_memory): first = True for row in que_rec.answer_choice_ids: etree.SubElement(xml_group, 'newline') - etree.SubElement(xml_group, 'field', {'widget': 'radio', 'horizontal': '1', 'no_radiolabel': not first and '1' or '0', 'modifiers': readonly and '{"readonly": 1}' or '{}', 'name': tools.ustr(que.id) + "_selection_" + tools.ustr(row.id), 'string': to_xml(tools.ustr(row.answer))}) + etree.SubElement(xml_group, 'label', {'for': tools.ustr(que.id) + "_selection_" + tools.ustr(row.id), 'string': to_xml(tools.ustr(row.answer))}) + etree.SubElement(xml_group, 'field', {'widget': 'radio', 'horizontal': '1', 'no_radiolabel': not first and '1' or '0', 'modifiers': readonly and '{"readonly": 1}' or '{}', 'name': tools.ustr(que.id) + "_selection_" + tools.ustr(row.id), 'nolabel': "1"}) first = False selection = [] for col in que_rec.column_heading_ids: