diff --git a/addons/survey/static/src/css/survey.css b/addons/survey/static/src/css/survey.css
index e1d2ba5858e..b17110a4ac5 100644
--- a/addons/survey/static/src/css/survey.css
+++ b/addons/survey/static/src/css/survey.css
@@ -67,4 +67,11 @@
border-width: 1px 1px 0 0;
text-shadow: none;
text-decoration: none !important;
+}
+
+.openerp .oe_survey_answer label {
+ max-width: 260px;
+ white-space: normal !important;
+ font-weight: bold;
+ padding-right: 8px;
}
\ No newline at end of file
diff --git a/addons/survey/survey.py b/addons/survey/survey.py
index 9e556138dff..762e79a2b42 100644
--- a/addons/survey/survey.py
+++ b/addons/survey/survey.py
@@ -347,22 +347,25 @@ 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', translate=True),
+ 'descriptive_text': fields.html('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)'),
- ('matrix_of_choices_only_one_ans', 'Matrix of Choices (Only One Answers Per Row)'),
- ('matrix_of_choices_only_multi_ans', 'Matrix of Choices (Multiple Answers Per Row)'),
- ('rating_scale', 'Rating Scale'), ('single_textbox', 'Single Textbox'),
- ('multiple_textboxes', 'Multiple Textboxes'),
- ('multiple_textboxes_diff_type', 'Multiple Textboxes With Different Type'),
- ('comment', 'Comment/Essay Box'),
- ('numerical_textboxes', 'Numerical Textboxes'), ('date', 'Date'),
- ('date_and_time', 'Date and Time'), ('descriptive_text', 'Descriptive Text'),
- ('table', 'Table'),
+ ('multiple_choice_multiple_ans', 'Multiple Choice (Multiple Answer)'),
+ ('matrix_of_choices_only_one_ans', 'Matrix of Choices (Only One Answers Per Row)'),
+ ('matrix_of_choices_only_multi_ans', 'Matrix of Choices (Multiple Answers Per Row)'),
+ ('rating_scale', 'Rating Scale'),
+ ('single_textbox', 'Single Textbox'),
+ ('multiple_textboxes', 'Multiple Textboxes'),
+ ('multiple_textboxes_diff_type', 'Multiple Textboxes With Different Type'),
+ ('comment', 'Comment/Essay Box'),
+ ('numerical_textboxes', 'Numerical Textboxes'),
+ ('date', 'Date'),
+ ('date_and_time', 'Date and Time'),
+ ('descriptive_text', 'Descriptive Text'),
+ ('table', 'Table'),
], 'Question Type', required=1, ),
'is_comment_require': fields.boolean('Add Comment Field'),
- 'comment_label': fields.char('Field Label', size=255, translate=True),
+ 'comment_label': fields.char('Field Label', translate=True),
'comment_field_type': fields.selection([('char', 'Single Line Of Text'), ('text', 'Paragraph of Text')], 'Comment Field Type'),
'comment_valid_type': fields.selection([('do_not_validate', '''Don't Validate Comment Text.'''),
('must_be_specific_length', 'Must Be Specific Length'),
@@ -402,7 +405,7 @@ class survey_question(osv.osv):
'in_visible_menu_choice': fields.boolean('Is Menu Choice Invisible?'),
'in_visible_answer_type': fields.boolean('Is Answer Type Invisible?'),
'comment_column': fields.boolean('Add comment column in matrix'),
- 'column_name': fields.char('Column Name', size=256, translate=True),
+ 'column_name': fields.char('Column Name', translate=True),
'no_of_rows': fields.integer('No of Rows'),
}
_defaults = {
diff --git a/addons/survey/survey_view.xml b/addons/survey/survey_view.xml
index a645f6645df..d1e4b528cc8 100644
--- a/addons/survey/survey_view.xml
+++ b/addons/survey/survey_view.xml
@@ -255,7 +255,6 @@
@@ -461,7 +458,6 @@