1 <?xml version="1.0" encoding="utf-8"?>
4 <menuitem name="Surveys" id="menu_surveys" parent="base.menu_tools" sequence="2" groups="base.group_tool_user,base.group_tool_manager,group_survey_user"/>
5 <menuitem name="Define Surveys" id="menu_define_survey"
6 groups="base.group_tool_manager"
7 parent="menu_surveys" />
8 <menuitem id="menu_answer_surveys" name="Answer Surveys" parent="menu_surveys" groups="base.group_tool_user,base.group_tool_manager,group_survey_user"/>
9 <menuitem name="Reporting" parent="base.menu_tools"
10 id="base.menu_lunch_reporting" sequence="6"/>
11 <menuitem name="Surveys" id="menu_reporting" parent="base.menu_lunch_reporting" sequence="2"/>
16 <record model="ir.ui.view" id="survey_form">
17 <field name="name">survey_form</field>
18 <field name="model">survey</field>
19 <field name="type">form</field>
20 <field name="arch" type="xml">
21 <form string="Survey">
22 <field name="title" select="1"/>
23 <group col="6" colspan="6">
24 <field name="responsible_id"/>
25 <field name="id" invisible="1"/>
26 <button name="%(action_view_survey_question_message)d" states="open,draft,close,cancel"
27 string="Test Survey" type="action" icon="gtk-new"
28 context="{'active':True,'survey_id': active_id}" attrs="{'invisible':[('id','=',0)]}"/>
29 <button name="%(action_view_survey_question_message)d" states="open,draft,close,cancel"
30 string="Answer Survey" type="action" icon="gtk-execute" context="{'survey_id': active_id}" attrs="{'invisible':[('state','!=','open')]}"/>
31 <button name="%(action_view_survey_question_message)d" states="open,draft,close,cancel"
32 string="Edit Survey" type="action" icon="gtk-edit" context="{'active':True,'edit' : True,'survey_id': active_id}"/>
34 <notebook colspan="4">
35 <page string="Survey">
36 <field name="page_ids" colspan="4" nolabel="1" mode="form,tree" context="{'line_order': page_ids}">
37 <form string="Survey Page">
38 <field name="title" select="1"/>
39 <field name="sequence" groups="base.group_extended"/>
40 <field name="note" colspan="4" nolabel="1"/>
41 <field name="question_ids" height="200" width="200" colspan="4" nolabel="1" context="{'line_order': question_ids}">
42 <form string="Survey Question" >
43 <group col="6" colspan="6" height="600" width="200">
44 <field name="question" colspan="4" select="1"/>
45 <field name="sequence"/>
46 <field name="tot_resp"/>
47 <field name="type" on_change="on_change_type(type)"/>
48 <field name="in_visible_rating_weight" invisible="1"/>
49 <field name="in_visible_menu_choice" invisible="1"/>
50 <field name="in_visible_answer_type" invisible="1"/>
51 <notebook colspan="4">
52 <page string="Options">
53 <group attrs="{'invisible':[('type','!=','multiple_textboxes_diff_type'),('type','!=','multiple_choice_only_one_ans'), ('type','!=','multiple_choice_multiple_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','multiple_textboxes'),('type','!=','numerical_textboxes'),('type','!=','date'),('type','!=','date_and_time'),('type','!=','table')]}">
54 <separator string="Answer" colspan="4"/>
55 <group colspan="4" attrs="{'invisible':[('type','=','table')]}">
56 <field name="answer_choice_ids" nolabel="1" colspan="4" context="{'line_order': answer_choice_ids}" default_get="{'in_visible_answer_type': in_visible_answer_type}"/>
58 <group colspan="4" attrs="{'invisible':[('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','table')]}">
59 <field name="column_heading_ids" colspan="4" nolabel="1" default_get="{'in_visible_rating_weight':in_visible_rating_weight,'in_visible_menu_choice':in_visible_menu_choice}"/>
60 <group colspan="4" attrs="{'invisible':[('type','!=','table')]}">
61 <field name="no_of_rows"/>
66 <group attrs="{'invisible':[('type','!=','multiple_choice_only_one_ans'), ('type','!=','multiple_choice_multiple_ans'), ('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale')]}">
67 <separator string="Comment Field" colspan="4"/>
69 <field name="is_comment_require"/>
71 <group attrs="{'invisible':[('is_comment_require','=',False)]}">
72 <group col="4" colspan="4">
73 <field name="comment_field_type" colspan="1"/>
74 <group colspan="2" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
75 <field colspan="2" name="comment_label" />
78 <group col="6" colspan="4" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
79 <field name="comment_valid_type" colspan="2"/>
80 <group colspan="2" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}">
81 <field name="comment_minimum_no" string="Between"/>
82 <field name="comment_maximum_no" string="and"/>
84 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}">
85 <field name="comment_minimum_float" string="Between"/>
86 <field name="comment_maximum_float" string="and"/>
88 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_date')]}">
89 <field name="comment_minimum_date" string="Between"/>
90 <field name="comment_maximum_date" string="and"/>
92 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'),('comment_valid_type','!=','must_be_decimal_number'),('comment_valid_type','!=','must_be_whole_number'),('comment_valid_type','!=','must_be_date'),('comment_valid_type','!=','must_be_email_address')]}">
93 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
94 <field name="comment_valid_err_msg" nolabel="1" colspan="4"/>
100 <group attrs="{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}">
101 <field name="comment_column"/>
102 <group colspan="2" attrs="{'invisible':[('comment_column','!=',True)]}">
103 <field name="column_name" colspan="2"/>
107 <group attrs="{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}">
108 <separator string="Validation" colspan="4"/>
110 <field name="is_validation_require"/>
112 <group col="6" colspan="4" attrs="{'invisible':[('is_validation_require','=',False)]}">
113 <field name="validation_type" colspan="2"/>
114 <group colspan="2" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}">
115 <field name="validation_minimum_no" string="Between"/>
116 <field name="validation_maximum_no" string="and"/>
118 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_decimal_number')]}">
119 <field name="validation_minimum_float" string="Between"/>
120 <field name="validation_maximum_float" string="and"/>
122 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_date')]}">
123 <field name="validation_minimum_date" string="Between"/>
124 <field name="validation_maximum_date" string="and"/>
127 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'),('validation_type','!=','must_be_decimal_number'),('validation_type','!=','must_be_whole_number'),('validation_type','!=','must_be_date'),('validation_type','!=','must_be_email_address')]}">
128 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
129 <field name="validation_valid_err_msg" nolabel="1" colspan="4"/>
133 <group attrs="{'invisible':[('type','!=','multiple_choice_only_one_ans'), ('type','!=','multiple_choice_multiple_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','multiple_textboxes'),('type','!=','numerical_textboxes'),('type','!=','date'),('type','!=','date_and_time'),('type','!=','single_textbox'),('type','!=','comment'),('type','!=','multiple_textboxes_diff_type')]}">
134 <separator string="Required Answer" colspan="4"/>
136 <field name="is_require_answer"/>
137 <group col="6" colspan="4" attrs="{'invisible':[('is_require_answer','=',False)]}">
138 <group colspan="4" attrs="{'invisible':[('type','!=','multiple_choice_multiple_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','multiple_textboxes'),('type','!=','numerical_textboxes'),('type','!=','date'),('type','!=','date_and_time'),('type','!=','multiple_textboxes_diff_type')]}">
139 <field name="required_type"/>
140 <group colspan="2" attrs="{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}">
141 <field name="req_ans" />
143 <group colspan="4" attrs="{'invisible':[('required_type','!=','a range')]}">
144 <field name="minimum_req_ans"/>
145 <field name="maximum_req_ans"/>
148 <group colspan="4" attrs="{'invisible':[('required_type','!=','all'),('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly'),('required_type','!=','a range'),('is_require_answer','!=',True)]}">
149 <label string="When the question is not answered, display this error message:"/>
150 <field name="req_error_msg" colspan="4" nolabel="1"/>
152 <group colspan="4" attrs="{'invisible':[('type','!=','numerical_textboxes')]}">
154 <field name="numeric_required_sum"/>
157 <label string="When the choices do not add up correctly, display this error message"/>
158 <field name="numeric_required_sum_err_msg" colspan="4" nolabel="1"/>
160 <group colspan="4" attrs="{'invisible':[('type','!=','rating_scale')]}">
161 <field name="rating_allow_one_column_require"/>
166 <group attrs="{'invisible':[('type','!=','descriptive_text')]}">
167 <separator string="Descriptive Text" colspan="4"/>
168 <field name="descriptive_text" colspan="4" nolabel="1"/>
174 <tree string="Survey Question">
175 <field name="sequence" string="Seq"/>
176 <field name="question" colspan="4" select="1"/>
177 <field name="answer_choice_ids"/>
182 <group col="9" colspan="4">
183 <field name="state"/>
184 <button name="survey_cancel"
185 string="Cancel" states="open" type="object" icon="gtk-cancel"/>
186 <button name="survey_draft"
187 string="Set to draft" states="cancel,close" type="object"
189 <button name="survey_open" string="Open"
190 states="draft" type="object" icon="gtk-go-forward"/>
191 <button name="survey_close"
192 string="Close" states="open" type="object" icon="gtk-close"/>
195 <page string="Other">
196 <group colspan="6" col='4'>
197 <field name="max_response_limit"
198 attrs="{'readonly':[('state','in',('open','close'))]}"/>
199 <field name="response_user"
200 attrs="{'readonly':[('state','in',('open','close'))]}"/>
202 <field name="send_response"/>
204 <separator colspan="4" string="Survey Details"/>
205 <field name="note" colspan="4" nolabel="1"/>
207 <page string="Invited User">
208 <field name="invited_user_ids" nolabel="1" readonly="1"/>
210 <page string="History">
211 <field name="date_open" select="1"/>
212 <field name="date_close"/>
213 <field name="tot_start_survey" select="1"/>
214 <field name="tot_comp_survey" select="1"/>
215 <field name="history" colspan="4" nolabel="1">
216 <tree string="History">
218 <field name="user_id"/>
220 <form string="History">
222 <field name="user_id"/>
231 <record model ="ir.ui.view" id= "survey_tree">
232 <field name="name">survey_tree</field>
233 <field name="model">survey</field>
234 <field name="type">tree</field>
235 <field name="arch" type="xml">
236 <tree colors="gray:state in ('close')" string="Survey">
237 <field name="title" select="1"/>
238 <field name="type" select="1"/>
239 <field name="responsible_id"/>
240 <field name="date_open" select="1" string="Open Date"/>
241 <field name="tot_start_survey" string="Started"/>
242 <field name="tot_comp_survey" string="Completed"/>
243 <field name="state" select="1"/>
244 <button name="%(action_view_survey_question_message)d" states="open,draft,close,cancel"
245 string="Test Survey" type="action" icon="gtk-new"
246 context="{'active':True,'survey_id': active_id}"/>
247 <button name="%(action_view_survey_question_message)d" states="open,draft,close,cancel"
248 string="Answer Survey" type="action" icon="gtk-execute" context="{'survey_id': active_id}" attrs="{'invisible':[('state','!=','open')]}"/>
249 <button name="%(action_view_survey_question_message)d" states="open,draft,close,cancel"
250 string="Edit Survey" type="action" icon="gtk-edit" context="{'active':True,'edit' : True,'survey_id': active_id}"/>
251 <button name="action_print_survey" states="open,draft,close,cancel"
252 string="Print Answer" type="object" icon="gtk-print"/>
257 <record id="survey_search" model="ir.ui.view">
258 <field name="name">survey_search</field>
259 <field name="model">survey</field>
260 <field name="type">search</field>
261 <field name="arch" type="xml">
262 <search string="Search Survey">
263 <group col='10' colspan='4'>
264 <filter icon="terp-check" string="Current" domain="[('state','in', ('draft', 'open'))]"/>
265 <separator orientation="vertical"/>
266 <field name="title" select="1"/>
267 <field name="type" select="1" widget="selection"/>
268 <field name="responsible_id" select="1">
269 <filter string="MY" icon="terp-personal" domain="[('responsible_id','=',uid)]" help="My Survey(s)"/>
273 <group expand="0" string="Group By..." colspan="4" col="20">
274 <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'responsible_id'}"/>
275 <separator orientation="vertical"/>
276 <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
277 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
283 <record model="ir.actions.act_window" id="action_survey_form1">
284 <field name="name">Surveys</field>
285 <field name="res_model">survey</field>
286 <field name="view_type">form</field>
287 <field name="view_mode">tree,form</field>
288 <field name="view_id" ref="survey_tree"></field>
289 <field name="search_view_id" ref="survey_search"/>
290 <field name="help">You can create survey for different purposes: recruitment interviews, employee's periodical evaluations, marketing campaigns, etc. A survey is made of pages containing questions of several types: text, multiple choices, etc. You can edit survey manually or click on the 'Edit Survey' for a WYSIWYG interface.</field>
294 <menuitem name="Surveys" id="menu_survey_form"
295 action="action_survey_form1" parent="menu_define_survey"
296 groups="base.group_tool_manager"/>
302 <record model="ir.ui.view" id="survey_page_form">
303 <field name="name">survey_page_form</field>
304 <field name="model">survey.page</field>
305 <field name="type">form</field>
306 <field name="arch" type="xml">
307 <form string="Survey Page">
308 <field name="title" colspan="4" select="1"/>
309 <field name="survey_id" select="1"/>
310 <field name="sequence"/>
311 <separator string="Description" colspan="4"/>
312 <field name="note" colspan="4" nolabel="1"/>
313 <field name="question_ids" colspan="4" nolabel="1" context="{'line_order': question_ids}">
314 <form string="Survey Question">
315 <field name="question" colspan="4" select="1"/>
316 <field name="sequence"/>
317 <field name="tot_resp"/>
318 <field name="type" on_change="on_change_type(type)"/>
319 <field name="in_visible_rating_weight" invisible="1"/>
320 <field name="in_visible_menu_choice" invisible="1"/>
321 <field name="in_visible_answer_type" invisible="1"/>
322 <notebook colspan="4">
323 <page string="Options">
324 <group attrs="{'invisible':[('type','!=','multiple_textboxes_diff_type'),('type','!=','multiple_choice_only_one_ans'), ('type','!=','multiple_choice_multiple_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','multiple_textboxes'),('type','!=','numerical_textboxes'),('type','!=','date'),('type','!=','date_and_time'),('type','!=','table')]}">
325 <separator string="Answer" colspan="4"/>
326 <group colspan="4" attrs="{'invisible':[('type','=','table')]}">
327 <field name="answer_choice_ids" nolabel="1" colspan="4" context="{'line_order': answer_choice_ids}" default_get="{'in_visible_answer_type': in_visible_answer_type}"/>
329 <group colspan="4" attrs="{'invisible':[('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','table')]}">
330 <field name="column_heading_ids" colspan="4" nolabel="1" default_get="{'in_visible_rating_weight':in_visible_rating_weight,'in_visible_menu_choice':in_visible_menu_choice}"/>
331 <group colspan="4" attrs="{'invisible':[('type','!=','table')]}">
332 <field name="no_of_rows"/>
337 <group attrs="{'invisible':[('type','!=','multiple_choice_only_one_ans'), ('type','!=','multiple_choice_multiple_ans'), ('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale')]}">
338 <separator string="Comment Field" colspan="4"/>
340 <field name="is_comment_require"/>
342 <group attrs="{'invisible':[('is_comment_require','=',False)]}">
343 <group col="4" colspan="4">
344 <field name="comment_field_type" colspan="1"/>
345 <group colspan="2" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
346 <field colspan="2" name="comment_label" />
349 <group col="6" colspan="4" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
350 <field name="comment_valid_type" colspan="2"/>
351 <group colspan="2" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}">
352 <field name="comment_minimum_no" string="Between"/>
353 <field name="comment_maximum_no" string="and"/>
355 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}">
356 <field name="comment_minimum_float" string="Between"/>
357 <field name="comment_maximum_float" string="and"/>
359 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_date')]}">
360 <field name="comment_minimum_date" string="Between"/>
361 <field name="comment_maximum_date" string="and"/>
363 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'),('comment_valid_type','!=','must_be_decimal_number'),('comment_valid_type','!=','must_be_whole_number'),('comment_valid_type','!=','must_be_date'),('comment_valid_type','!=','must_be_email_address')]}">
364 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
365 <field name="comment_valid_err_msg" nolabel="1" colspan="4"/>
371 <group attrs="{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}">
372 <field name="comment_column"/>
373 <group colspan="2" attrs="{'invisible':[('comment_column','!=',True)]}">
374 <field name="column_name" colspan="2"/>
378 <group attrs="{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}">
379 <separator string="Validation" colspan="4"/>
381 <field name="is_validation_require"/>
383 <group col="6" colspan="4" attrs="{'invisible':[('is_validation_require','=',False)]}">
384 <field name="validation_type" colspan="2"/>
385 <group colspan="2" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}">
386 <field name="validation_minimum_no" string="Between"/>
387 <field name="validation_maximum_no" string="and"/>
389 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_decimal_number')]}">
390 <field name="validation_minimum_float" string="Between"/>
391 <field name="validation_maximum_float" string="and"/>
393 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_date')]}">
394 <field name="validation_minimum_date" string="Between"/>
395 <field name="validation_maximum_date" string="and"/>
398 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'),('validation_type','!=','must_be_decimal_number'),('validation_type','!=','must_be_whole_number'),('validation_type','!=','must_be_date'),('validation_type','!=','must_be_email_address')]}">
399 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
400 <field name="validation_valid_err_msg" nolabel="1" colspan="4"/>
404 <group attrs="{'invisible':[('type','!=','multiple_choice_only_one_ans'), ('type','!=','multiple_choice_multiple_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','multiple_textboxes'),('type','!=','numerical_textboxes'),('type','!=','date'),('type','!=','date_and_time'),('type','!=','single_textbox'),('type','!=','comment'),('type','!=','multiple_textboxes_diff_type')]}">
405 <separator string="Required Answer" colspan="4"/>
407 <field name="is_require_answer"/>
408 <group col="6" colspan="4" attrs="{'invisible':[('is_require_answer','=',False)]}">
409 <group colspan="4" attrs="{'invisible':[('type','!=','multiple_choice_multiple_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','multiple_textboxes'),('type','!=','numerical_textboxes'),('type','!=','date'),('type','!=','date_and_time'),('type','!=','multiple_textboxes_diff_type')]}">
410 <field name="required_type"/>
411 <group colspan="2" attrs="{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}">
412 <field name="req_ans" />
414 <group colspan="4" attrs="{'invisible':[('required_type','!=','a range')]}">
415 <field name="minimum_req_ans"/>
416 <field name="maximum_req_ans"/>
419 <group colspan="4" attrs="{'invisible':[('required_type','!=','all'),('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly'),('required_type','!=','a range'),('is_require_answer','!=',True)]}">
420 <label string="When the question is not answered, display this error message:"/>
421 <field name="req_error_msg" colspan="4" nolabel="1"/>
423 <group colspan="4" attrs="{'invisible':[('type','!=','numerical_textboxes')]}">
425 <field name="numeric_required_sum"/>
428 <label string="When the choices do not add up correctly, display this error message"/>
429 <field name="numeric_required_sum_err_msg" colspan="4" nolabel="1"/>
431 <group colspan="4" attrs="{'invisible':[('type','!=','rating_scale')]}">
432 <field name="rating_allow_one_column_require"/>
437 <group attrs="{'invisible':[('type','!=','descriptive_text')]}">
438 <separator string="Descriptive Text" colspan="4"/>
439 <field name="descriptive_text" colspan="4" nolabel="1"/>
445 <tree string="Survey Question">
446 <field name="sequence" string="Seq"/>
447 <field name="question" colspan="4" select="1"/>
448 <field name="answer_choice_ids"/>
456 <record model="ir.ui.view" id="survey_page_tree">
457 <field name="name">survey_page_tree</field>
458 <field name="model">survey.page</field>
459 <field name="type">tree</field>
460 <field name="arch" type="xml">
461 <tree string="Survey Page">
462 <field name="sequence" string="Seq"/>
463 <field name="title"/>
464 <field name="survey_id"/>
465 <field name="question_ids" string="#Questions"/>
470 <record id="view_survey_page_filter" model="ir.ui.view">
471 <field name="name">survey.page.list.select</field>
472 <field name="model">survey.page</field>
473 <field name="type">search</field>
474 <field name="arch" type="xml">
475 <search string="Search Survey Page">
476 <field name="title"/>
477 <field name="survey_id"/>
479 <group expand="0" string="Group By..." colspan="4" col="20">
480 <filter string="Survey" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'survey_id'}"/>
486 <record model="ir.actions.act_window" id="action_survey_page_form">
487 <field name="name">Survey Pages</field>
488 <field name="res_model">survey.page</field>
489 <field name="view_type">form</field>
490 <field name="view_mode">tree,form</field>
491 <field name="view_id" ref="survey_page_tree"></field>
494 <menuitem name="Survey Pages" id="menu_survey_page_form1"
495 action="action_survey_page_form" parent='menu_define_survey'
496 groups="base.group_tool_manager"/>
498 <record model="ir.ui.view" id="survey_page_wizard_test1">
499 <field name="name">survey_page_wizard_test</field>
500 <field name="model">survey.page</field>
501 <field name="type">form</field>
502 <field name="arch" type="xml">
503 <form string="Survey Pages">
504 <field name="title" colspan="4" select="1"/>
505 <field name="sequence"/>
506 <separator string="Description" colspan="4"/>
507 <field name="note" colspan="4" nolabel="1"/>
509 <label string="" colspan="3"/>
510 <button name="survey_save" string="Ok" type="object" icon="gtk-go-forward"/>
520 <record model="ir.ui.view" id="survey_question_form">
521 <field name="name">survey_question_form</field>
522 <field name="model">survey.question</field>
523 <field name="type">form</field>
524 <field name="arch" type="xml">
525 <form string="Survey Question">
526 <field name="question" colspan="4"/>
527 <field name="page_id"/>
528 <field name="sequence"/>
529 <field name="tot_resp"/>
530 <field name="type" on_change="on_change_type(type)"/>
531 <field name="in_visible_rating_weight" invisible="1"/>
532 <field name="in_visible_menu_choice" invisible="1"/>
533 <field name="in_visible_answer_type" invisible="1"/>
534 <notebook colspan="4">
535 <page string="Options">
536 <group attrs="{'invisible':[('type','!=','multiple_textboxes_diff_type'),('type','!=','multiple_choice_only_one_ans'), ('type','!=','multiple_choice_multiple_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','multiple_textboxes'),('type','!=','numerical_textboxes'),('type','!=','date'),('type','!=','date_and_time'),('type','!=','table')]}">
537 <separator string="Answer" colspan="4"/>
538 <group colspan="4" attrs="{'invisible':[('type','=','table')]}">
539 <field name="answer_choice_ids" nolabel="1" colspan="4" context="{'line_order': answer_choice_ids}" default_get="{'in_visible_answer_type': in_visible_answer_type}"/>
541 <group colspan="4" attrs="{'invisible':[('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','table')]}">
542 <field name="column_heading_ids" colspan="4" nolabel="1" default_get="{'in_visible_rating_weight':in_visible_rating_weight,'in_visible_menu_choice':in_visible_menu_choice}"/>
543 <group colspan="4" attrs="{'invisible':[('type','!=','table')]}">
544 <field name="no_of_rows"/>
549 <group attrs="{'invisible':[('type','!=','multiple_choice_only_one_ans'), ('type','!=','multiple_choice_multiple_ans'), ('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale')]}">
550 <separator string="Comment Field" colspan="4"/>
552 <field name="is_comment_require"/>
554 <group attrs="{'invisible':[('is_comment_require','=',False)]}">
555 <group col="4" colspan="4">
556 <field name="comment_field_type" colspan="1"/>
557 <group colspan="2" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
558 <field colspan="2" name="comment_label" />
561 <group col="6" colspan="4" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
562 <field name="comment_valid_type" colspan="2"/>
563 <group colspan="2" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}">
564 <field name="comment_minimum_no" string="Between"/>
565 <field name="comment_maximum_no" string="and"/>
567 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}">
568 <field name="comment_minimum_float" string="Between"/>
569 <field name="comment_maximum_float" string="and"/>
571 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_date')]}">
572 <field name="comment_minimum_date" string="Between"/>
573 <field name="comment_maximum_date" string="and"/>
575 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'),('comment_valid_type','!=','must_be_decimal_number'),('comment_valid_type','!=','must_be_whole_number'),('comment_valid_type','!=','must_be_date'),('comment_valid_type','!=','must_be_email_address')]}">
576 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
577 <field name="comment_valid_err_msg" nolabel="1" colspan="4"/>
583 <group attrs="{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}">
584 <field name="comment_column"/>
585 <group colspan="2" attrs="{'invisible':[('comment_column','!=',True)]}">
586 <field name="column_name" colspan="2"/>
590 <group attrs="{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}">
591 <separator string="Validation" colspan="4"/>
593 <field name="is_validation_require"/>
595 <group col="6" colspan="4" attrs="{'invisible':[('is_validation_require','=',False)]}">
596 <field name="validation_type" colspan="2"/>
597 <group colspan="2" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}">
598 <field name="validation_minimum_no" string="Between"/>
599 <field name="validation_maximum_no" string="and"/>
601 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_decimal_number')]}">
602 <field name="validation_minimum_float" string="Between"/>
603 <field name="validation_maximum_float" string="and"/>
605 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_date')]}">
606 <field name="validation_minimum_date" string="Between"/>
607 <field name="validation_maximum_date" string="and"/>
610 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'),('validation_type','!=','must_be_decimal_number'),('validation_type','!=','must_be_whole_number'),('validation_type','!=','must_be_date'),('validation_type','!=','must_be_email_address')]}">
611 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
612 <field name="validation_valid_err_msg" nolabel="1" colspan="4"/>
616 <group attrs="{'invisible':[('type','!=','multiple_choice_only_one_ans'), ('type','!=','multiple_choice_multiple_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','multiple_textboxes'),('type','!=','numerical_textboxes'),('type','!=','date'),('type','!=','date_and_time'),('type','!=','single_textbox'),('type','!=','comment'),('type','!=','multiple_textboxes_diff_type')]}">
617 <separator string="Required Answer" colspan="4"/>
619 <field name="is_require_answer"/>
620 <group col="6" colspan="4" attrs="{'invisible':[('is_require_answer','=',False)]}">
621 <group colspan="4" attrs="{'invisible':[('type','!=','multiple_choice_multiple_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','multiple_textboxes'),('type','!=','numerical_textboxes'),('type','!=','date'),('type','!=','date_and_time'),('type','!=','multiple_textboxes_diff_type')]}">
622 <field name="required_type"/>
623 <group colspan="2" attrs="{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}">
624 <field name="req_ans" />
626 <group colspan="4" attrs="{'invisible':[('required_type','!=','a range')]}">
627 <field name="minimum_req_ans"/>
628 <field name="maximum_req_ans"/>
631 <group colspan="4" attrs="{'invisible':[('required_type','!=','all'),('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly'),('required_type','!=','a range'),('is_require_answer','!=',True)]}">
632 <label string="When the question is not answered, display this error message:"/>
633 <field name="req_error_msg" colspan="4" nolabel="1"/>
635 <group colspan="4" attrs="{'invisible':[('type','!=','numerical_textboxes')]}">
637 <field name="numeric_required_sum"/>
640 <label string="When the choices do not add up correctly, display this error message"/>
641 <field name="numeric_required_sum_err_msg" colspan="4" nolabel="1"/>
643 <group colspan="4" attrs="{'invisible':[('type','!=','rating_scale')]}">
644 <field name="rating_allow_one_column_require"/>
649 <group attrs="{'invisible':[('type','!=','descriptive_text')]}">
650 <separator string="Descriptive Text" colspan="4"/>
651 <field name="descriptive_text" colspan="4" nolabel="1"/>
659 <record model="ir.ui.view" id="survey_question_tree">
660 <field name="name">survey_question_tree</field>
661 <field name="model">survey.question</field>
662 <field name="type">tree</field>
663 <field name="arch" type="xml">
664 <tree string="Survey Question">
665 <field name="sequence" string="Seq"/>
666 <field name="question"/>
667 <field name="page_id"/>
668 <field name="survey"/>
674 <record id="survey_question_search" model="ir.ui.view">
675 <field name="name">survey_question_search</field>
676 <field name="model">survey.question</field>
677 <field name="type">search</field>
678 <field name="arch" type="xml">
679 <search string="Search Question">
680 <field name="question"/>
681 <field name="page_id"/>
682 <field name="survey" widget="selection"/>
685 <group expand="0" string="Group By..." colspan="4" col="20">
686 <filter string="Page" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'page_id'}"/>
692 <record model="ir.actions.act_window" id="action_survey_question_form">
693 <field name="name">Survey Questions</field>
694 <field name="res_model">survey.question</field>
695 <field name="view_type">form</field>
696 <field name="view_mode">tree,form</field>
697 <field name="view_id" ref="survey_question_tree"></field>
698 <field name="search_view_id" ref="survey_question_search"/>
701 <record model="ir.ui.view" id="survey_question_wizard_test">
702 <field name="name">survey_question_wizard_test</field>
703 <field name="model">survey.question</field>
704 <field name="type">form</field>
705 <field name="arch" type="xml">
706 <form string="Survey Question">
707 <field name="question" colspan="4"/>
708 <field name="sequence"/>
709 <field name="tot_resp"/>
710 <field name="type" on_change="on_change_type(type)"/>
711 <field name="in_visible_rating_weight" invisible="1"/>
712 <field name="in_visible_menu_choice" invisible="1"/>
713 <field name="in_visible_answer_type" invisible="1"/>
714 <notebook colspan="4">
715 <page string="Options">
716 <group attrs="{'invisible':[('type','!=','multiple_textboxes_diff_type'),('type','!=','multiple_choice_only_one_ans'), ('type','!=','multiple_choice_multiple_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','multiple_textboxes'),('type','!=','numerical_textboxes'),('type','!=','date'),('type','!=','date_and_time'),('type','!=','table')]}">
717 <separator string="Answer" colspan="4"/>
718 <group colspan="4" attrs="{'invisible':[('type','=','table')]}">
719 <field name="answer_choice_ids" nolabel="1" colspan="4" context="{'line_order': answer_choice_ids}" default_get="{'in_visible_answer_type': in_visible_answer_type}"/>
721 <group colspan="4" attrs="{'invisible':[('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','table')]}">
722 <field name="column_heading_ids" colspan="4" nolabel="1" default_get="{'in_visible_rating_weight':in_visible_rating_weight,'in_visible_menu_choice':in_visible_menu_choice}"/>
723 <group colspan="4" attrs="{'invisible':[('type','!=','table')]}">
724 <field name="no_of_rows"/>
729 <group attrs="{'invisible':[('type','!=','multiple_choice_only_one_ans'), ('type','!=','multiple_choice_multiple_ans'), ('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale')]}">
730 <separator string="Comment Field" colspan="4"/>
732 <field name="is_comment_require"/>
734 <group attrs="{'invisible':[('is_comment_require','=',False)]}">
735 <group col="4" colspan="4">
736 <field name="comment_field_type" colspan="1"/>
737 <group colspan="2" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
738 <field colspan="2" name="comment_label" />
741 <group col="6" colspan="4" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
742 <field name="comment_valid_type" colspan="2"/>
743 <group colspan="2" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}">
744 <field name="comment_minimum_no" string="Between"/>
745 <field name="comment_maximum_no" string="and"/>
747 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}">
748 <field name="comment_minimum_float" string="Between"/>
749 <field name="comment_maximum_float" string="and"/>
751 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_date')]}">
752 <field name="comment_minimum_date" string="Between"/>
753 <field name="comment_maximum_date" string="and"/>
755 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'),('comment_valid_type','!=','must_be_decimal_number'),('comment_valid_type','!=','must_be_whole_number'),('comment_valid_type','!=','must_be_date'),('comment_valid_type','!=','must_be_email_address')]}">
756 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
757 <field name="comment_valid_err_msg" nolabel="1" colspan="4"/>
763 <group attrs="{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}">
764 <field name="comment_column"/>
765 <group colspan="2" attrs="{'invisible':[('comment_column','!=',True)]}">
766 <field name="column_name" colspan="2"/>
770 <group attrs="{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}">
771 <separator string="Validation" colspan="4"/>
773 <field name="is_validation_require"/>
775 <group col="6" colspan="4" attrs="{'invisible':[('is_validation_require','=',False)]}">
776 <field name="validation_type" colspan="2"/>
777 <group colspan="2" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}">
778 <field name="validation_minimum_no" string="Between"/>
779 <field name="validation_maximum_no" string="and"/>
781 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_decimal_number')]}">
782 <field name="validation_minimum_float" string="Between"/>
783 <field name="validation_maximum_float" string="and"/>
785 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_date')]}">
786 <field name="validation_minimum_date" string="Between"/>
787 <field name="validation_maximum_date" string="and"/>
790 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'),('validation_type','!=','must_be_decimal_number'),('validation_type','!=','must_be_whole_number'),('validation_type','!=','must_be_date'),('validation_type','!=','must_be_email_address')]}">
791 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
792 <field name="validation_valid_err_msg" nolabel="1" colspan="4"/>
796 <group attrs="{'invisible':[('type','!=','multiple_choice_only_one_ans'), ('type','!=','multiple_choice_multiple_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','multiple_textboxes'),('type','!=','numerical_textboxes'),('type','!=','date'),('type','!=','date_and_time'),('type','!=','single_textbox'),('type','!=','comment'),('type','!=','multiple_textboxes_diff_type')]}">
797 <separator string="Required Answer" colspan="4"/>
799 <field name="is_require_answer"/>
800 <group col="6" colspan="4" attrs="{'invisible':[('is_require_answer','=',False)]}">
801 <group colspan="4" attrs="{'invisible':[('type','!=','multiple_choice_multiple_ans'),('type','!=','matrix_of_choices_only_one_ans'),('type','!=','matrix_of_choices_only_multi_ans'),('type','!=','matrix_of_drop_down_menus'),('type','!=','rating_scale'),('type','!=','multiple_textboxes'),('type','!=','numerical_textboxes'),('type','!=','date'),('type','!=','date_and_time'),('type','!=','multiple_textboxes_diff_type')]}">
802 <field name="required_type"/>
803 <group colspan="2" attrs="{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}">
804 <field name="req_ans" />
806 <group colspan="4" attrs="{'invisible':[('required_type','!=','a range')]}">
807 <field name="minimum_req_ans"/>
808 <field name="maximum_req_ans"/>
811 <group colspan="4" attrs="{'invisible':[('required_type','!=','all'),('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly'),('required_type','!=','a range'),('is_require_answer','!=',True)]}">
812 <label string="When the question is not answered, display this error message:"/>
813 <field name="req_error_msg" colspan="4" nolabel="1"/>
815 <group colspan="4" attrs="{'invisible':[('type','!=','numerical_textboxes')]}">
817 <field name="numeric_required_sum"/>
820 <label string="When the choices do not add up correctly, display this error message"/>
821 <field name="numeric_required_sum_err_msg" colspan="4" nolabel="1"/>
823 <group colspan="4" attrs="{'invisible':[('type','!=','rating_scale')]}">
824 <field name="rating_allow_one_column_require"/>
829 <group attrs="{'invisible':[('type','!=','descriptive_text')]}">
830 <separator string="Descriptive Text" colspan="4"/>
831 <field name="descriptive_text" colspan="4" nolabel="1"/>
836 <label string="" colspan="3"/>
837 <button name="survey_save" string="Ok" type="object" icon="gtk-go-forward"/>
847 <record model ="ir.ui.view" id="survey_answer_form">
848 <field name="name">survey_answer_form</field>
849 <field name="model">survey.answer</field>
850 <field name="type">form</field>
851 <field name="arch" type="xml">
852 <form string="Survey Answer">
853 <field name="answer" colspan="4" select="1"/>
854 <field name="sequence"/>
855 <field name="in_visible_answer_type" invisible="1"/>
856 <group colspan="4" attrs="{'invisible':[('in_visible_answer_type','=',True)]}">
857 <field name="type" colspan="2"/>
858 <group colspan="4" attrs="{'invisible':[('type','!=','selection')]}">
859 <separator string="Menu Choices (each choice on separate by lines)" colspan="4"/>
860 <field name="menu_choice" colspan="4" nolabel="1"/>
868 <record model="ir.ui.view" id= "survey_answer_tree">
869 <field name="name">survey_answer_tree</field>
870 <field name="model">survey.answer</field>
871 <field name="type">tree</field>
872 <field name="arch" type="xml">
873 <tree editable="bottom" string="Survey Answer">
874 <field name="sequence" string="Seq"/>
875 <field name="answer" select="1"/>
885 <record model ="ir.ui.view" id= "survey_response_line_form">
886 <field name="name">survey_response_line_form</field>
887 <field name="model">survey.response.line</field>
888 <field name="type">form</field>
889 <field name="arch" type="xml">
890 <form string="Survey Answer">
891 <field name="question_id"/>
892 <field name="date_create" select="1"/>
893 <notebook colspan="4">
894 <page string="Answer">
895 <field name="response_answer_ids" colspan="4" nolabel="1"/>
896 <group col="5" colspan="4">
897 <field name="state"/>
900 <page string="Single Textboxes">
901 <field name="single_text" colspan="4"/>
903 <page string="Comment">
904 <separator string="Description" colspan="4"/>
905 <field name="comment" nolabel="1" colspan="4"/>
907 <page string="Table Answer">
908 <field name="response_table_ids" colspan="4" nolabel="1">
909 <form string="Table">
910 <field name="column_id"/>
912 <field name="value"/>
914 <tree string="Table">
915 <field name="column_id"/>
917 <field name="value"/>
926 <record model="ir.ui.view" id="survey_response_line_tree">
927 <field name="name">survey_response_line_tree</field>
928 <field name="model">survey.response.line</field>
929 <field name="type">tree</field>
930 <field name="arch" type="xml">
931 <tree string="Survey Answer Line">
932 <field name="page_id"/>
933 <field name="question_id"/>
934 <field name="date_create" select="1"/>
935 <field name="state"/>
944 <record model="ir.ui.view" id="survey_response_form">
945 <field name="name">survey_response_form</field>
946 <field name="model">survey.response</field>
947 <field name="type">form</field>
948 <field name="arch" type="xml">
949 <form string="Survey Answer">
950 <field name="survey_id" select="1"/>
951 <field name="date_create" select="1"/>
952 <field name="user_id" select="1"/>
953 <field name="response_type" select="1"/>
954 <field name="question_ids" nolabel="1" colspan="4" />
955 <field name="state" select="1"/>
960 <record model="ir.ui.view" id="survey_response_tree">
961 <field name="name">survey_response_tree</field>
962 <field name="model">survey.response</field>
963 <field name="type">tree</field>
964 <field name="arch" type="xml">
965 <tree string="Survey Answer">
966 <field name="survey_id" select="1"/>
967 <field name="date_create" select="1"/>
968 <field name="user_id" select="1"/>
969 <field name="response_type" select="1"/>
970 <field name="state" select="1"/>
976 Survey Response Answer
979 <record model="ir.ui.view" id="survey_response_answer_form">
980 <field name="name">survey_response_answer_form</field>
981 <field name="model">survey.response.answer</field>
982 <field name="type">form</field>
983 <field name="arch" type="xml">
984 <form string="Survey Answer">
986 <field name="answer_id"/>
987 <field name="answer" />
989 <field name="value_choice"/>
990 <label string="(Use Only Question Type is matrix_of_drop_down_menus)" align="0.0"/>
991 <group colspan="4" col="4">
992 <field name="comment_field"/>
993 <field name="column_id"/>
999 <record model="ir.ui.view" id="survey_response_answer_tree">
1000 <field name="name">survey_response_answer_tree</field>
1001 <field name="model">survey.response.answer</field>
1002 <field name="type">tree</field>
1003 <field name="arch" type="xml">
1004 <tree editable="top" string="Survey Answer">
1005 <field name="answer_id"/>
1006 <field name="answer" />
1007 <field name="value_choice" />
1008 <field name="column_id"/>
1009 <field name="comment_field"/>
1015 Survey Question Column Heading
1018 <record model="ir.ui.view" id="survey_question_column_heading_form">
1019 <field name="name">survey_question_column_heading_form</field>
1020 <field name="model">survey.question.column.heading</field>
1021 <field name="type">form</field>
1022 <field name="arch" type="xml">
1023 <form string="Column Heading">
1024 <field name="title"/>
1025 <field name="in_visible_rating_weight" invisible="1"/>
1026 <field name="in_visible_menu_choice" invisible="1"/>
1027 <group colspan="4" attrs="{'invisible':[('in_visible_rating_weight','!=',False)]}">
1028 <field name="rating_weight"/>
1029 <label align="0.0" string="Use if question type is rating_scale" />
1031 <group colspan="4" attrs="{'invisible':[('in_visible_menu_choice','!=',False)]}">
1032 <separator string="Menu Choices (each choice on separate lines)" colspan="4"/>
1033 <field name="menu_choice" nolabel="1" colspan="4"/>
1039 <record model="ir.ui.view" id="survey_question_column_heading_tree">
1040 <field name="name">survey_question_column_heading_tree</field>
1041 <field name="model">survey.question.column.heading</field>
1042 <field name="type">tree</field>
1043 <field name="arch" type="xml">
1044 <tree editable="bottom" string="Column Heading">
1045 <field name="title"/>
1054 <record model="ir.ui.view" id="survey_request_form">
1055 <field name="name">survey_request_form</field>
1056 <field name="model">survey.request</field>
1057 <field name="type">form</field>
1058 <field name="arch" type="xml">
1059 <form string="Survey Request">
1060 <field name="date_deadline"/>
1061 <field name="survey_id"/>
1062 <field name="user_id" on_change="on_change_user(user_id)"/>
1063 <field name="response" readonly="1"/>
1064 <group colspan="4" col="6">
1065 <field name="state"/>
1066 <button name="survey_req_cancel" string="Cancelled" states="waiting_answer" type="object" icon="gtk-cancel"/>
1067 <button name="survey_req_draft" string="Set to Draft" states="cancel,done" type="object" icon="gtk-new"/>
1068 <button name="survey_req_waiting_answer" string="Watting Answer" states="draft" type="object" icon="gtk-new"/>
1069 <button name="survey_req_done" string="Done" states="waiting_answer" type="object" icon="gtk-ok"/>
1075 <record model="ir.ui.view" id="survey_request_tree">
1076 <field name="name">survey_request_tree</field>
1077 <field name="model">survey.request</field>
1078 <field name="type">tree</field>
1079 <field name="arch" type="xml">
1080 <tree string="Evaluation Plan Phase" colors="red:date_deadline<current_date">
1081 <field name="date_deadline"/>
1082 <field name="user_id"/>
1083 <field name="survey_id"/>
1084 <field name="response" />
1085 <field name="state" />
1090 <record id="survey_request_search" model="ir.ui.view">
1091 <field name="name">survey_request_search</field>
1092 <field name="model">survey.request</field>
1093 <field name="type">search</field>
1094 <field name="arch" type="xml">
1095 <search string="Search Survey">
1096 <group col='10' colspan='4'>
1097 <filter icon="terp-gtk-media-pause" string="Waiting Answer" domain="[('state','=','waiting_answer')]"/>
1098 <filter icon="terp-emblem-important" string="Late" domain="[('date_deadline','<',current_date)]"/>
1099 <separator orientation="vertical"/>
1100 <field name="survey_id" widget="selection" select="1"/>
1101 <field name="email" select="1"/>
1102 <field name="user_id" select="1">
1103 <filter string="MY" icon="terp-personal" domain="[('user_id','=',uid)]"/>
1107 <group expand="0" string="Group By..." colspan="4" col="20">
1108 <filter string="User" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
1109 <separator orientation="vertical"/>
1110 <filter string="Survey" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'survey_id'}"/>
1111 <separator orientation="vertical"/>
1112 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1118 <record model="ir.actions.act_window" id="action_survey_request_tree">
1119 <field name="name">Survey Requests</field>
1120 <field name="res_model">survey.request</field>
1121 <field name="view_type">form</field>
1122 <field name="view_mode">tree,form</field>
1123 <field name="domain">[('user_id','=',uid)]</field>
1124 <field name="view_id" ref="survey_request_tree"></field>
1125 <field name="search_view_id" ref="survey_request_search"/>
1128 <menuitem name="Survey Requests" id="menu_survey_type_form1"
1129 action="action_survey_request_tree" parent='menu_answer_surveys'
1130 groups="base.group_tool_manager"/>
1136 <record model="ir.ui.view" id="survey_type_form">
1137 <field name="name">survey_type_form</field>
1138 <field name="model">survey.type</field>
1139 <field name="type">form</field>
1140 <field name="arch" type="xml">
1141 <form string="Survey Type">
1142 <field name="name" select="1"/>
1143 <field name="code" select="1"/>
1148 <record model="ir.ui.view" id="survey_type_tree">
1149 <field name="name">survey_type_tree</field>
1150 <field name="model">survey.type</field>
1151 <field name="type">tree</field>
1152 <field name="arch" type="xml">
1153 <tree string="Survey Type">
1154 <field name="name" select="1"/>
1155 <field name="code" select="1"/>
1160 <record model="ir.actions.act_window" id="action_survey_type_form">
1161 <field name="name">Survey Type</field>
1162 <field name="res_model">survey.type</field>
1163 <field name="view_type">form</field>
1164 <field name="view_mode">tree,form</field>
1165 <field name="view_id" ref="survey_type_tree"></field>
1169 context="{'search_default_survey_id': [active_id]}"
1170 id="act_survey_pages"
1172 res_model="survey.page"
1173 src_model="survey"/>
1176 context="{'search_default_survey': active_id}"
1177 id="act_survey_question"
1179 res_model="survey.question"
1180 src_model="survey"/>
1184 context="{'search_default_page_id': active_id}"
1185 id="act_survey_page_question"
1187 res_model="survey.question"
1188 src_model="survey.page"/>
1190 <act_window domain="[('question_id', '=', active_id)]"
1191 id="act_survey_answer"
1193 res_model="survey.answer"
1194 src_model="survey.question"/>
1196 <menuitem name="Answer a Survey" id="menu_run_survey_form" sequence="2"
1197 action="action_view_survey_name" parent="menu_answer_surveys" groups="base.group_tool_user,base.group_tool_manager,group_survey_user" icon="STOCK_INDEX"/>