1 <?xml version="1.0" encoding="utf-8"?>
5 <!-- <menuitem name="Survey Management" id="main_menu_survey" icon="terp-crm" sequence="1" groups="group_survey_manager,group_survey_user"/>-->
6 <menuitem icon="STOCK_PREFERENCES" id="base.menu_tools" name="Tools"/>
7 <menuitem name="Survey" id="main_menu_survey"
8 sequence="3" groups="group_survey_manager,group_survey_user"
9 parent="base.menu_tools" />
10 <menuitem id="menu_defination" name="Defination" parent="main_menu_survey" sequence="1"/>
11 <!-- <menuitem name="Configuration" id="menu_survey_config" parent="main_menu_survey" groups="group_survey_manager"/>-->
12 <menuitem name="Configuration" parent="base.menu_tools"
13 id="base.menu_lunch_survey_root" groups="group_survey_manager" sequence="6"/>
14 <menuitem name="Surveys" id="menu_survey_config"
15 parent="base.menu_lunch_survey_root" groups="group_survey_manager" sequence="2"/>
19 <record model="ir.ui.view" id="survey_form">
20 <field name="name">survey_form</field>
21 <field name="model">survey</field>
22 <field name="type">form</field>
23 <field name="arch" type="xml">
24 <form string="Survey">
25 <field name="title" select="1"/>
26 <group col="6" colspan="6">
27 <field name="responsible_id"/>
28 <button name="%(action_view_survey_name)d" states="open,draft,close,cancel"
29 string="Test Survey" type="action" icon="gtk-new" context="{'active':True,'survey_id': active_id}"/>
30 <button name="%(action_view_survey_name)d" states="open,draft,close,cancel"
31 string="Answer Survey" type="action" icon="gtk-execute" context="{'survey_id': active_id}" attrs="{'readonly':[('state','!=','open')]}"/>
32 <button name="%(action_view_survey_name)d" states="open,draft,close,cancel"
33 string="Edit Survey" type="action" icon="gtk-edit" context="{'active':True,'edit' : True,'survey_id': active_id}"/>
35 <notebook colspan="4">
36 <page string="Survey">
37 <field name="page_ids" colspan="4" nolabel="1" mode="form,tree" context="{'line_order': page_ids}">
38 <form string="Survey Page">
39 <field name="title" select="1"/>
40 <field name="sequence"/>
41 <field name="note" colspan="4" nolabel="1"/>
42 <field name="question_ids" colspan="4" nolabel="1" context="{'line_order': question_ids}">
43 <form string="Survey Question">
44 <field name="question" colspan="4" select="1"/>
45 <field name="sequence"/>
46 <field name="tot_resp" select="2"/>
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 <notebook colspan="4">
51 <page string="Options">
52 <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','!=','table')]}">
53 <separator string="Answer" colspan="4"/>
54 <group colspan="4" attrs="{'invisible':[('type','=','table')]}">
55 <field name="answer_choice_ids" nolabel="1" colspan="4" context="{'line_order': answer_choice_ids}"/>
57 <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')]}">
58 <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}"/>
59 <group colspan="4" attrs="{'invisible':[('type','!=','table')]}">
60 <field name="no_of_rows"/>
65 <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')]}">
66 <separator string="Comment Field" colspan="4"/>
68 <field name="is_comment_require"/>
70 <group attrs="{'invisible':[('is_comment_require','=',False)]}">
71 <group col="4" colspan="4">
72 <field name="comment_field_type" colspan="1"/>
73 <group colspan="2" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
74 <field colspan="2" name="comment_label" />
77 <group col="6" colspan="4" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
78 <field name="comment_valid_type" colspan="2"/>
79 <group colspan="2" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}">
80 <field name="comment_minimum_no" string="Between"/>
81 <field name="comment_maximum_no" string="and"/>
83 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}">
84 <field name="comment_minimum_float" string="Between"/>
85 <field name="comment_maximum_float" string="and"/>
87 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_date')]}">
88 <field name="comment_minimum_date" string="Between"/>
89 <field name="comment_maximum_date" string="and"/>
91 <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')]}">
92 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
93 <field name="comment_valid_err_msg" nolabel="1" colspan="4"/>
99 <group attrs="{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}">
100 <field name="comment_column"/>
101 <group colspan="2" attrs="{'invisible':[('comment_column','!=',True)]}">
102 <field name="column_name" colspan="2"/>
106 <group attrs="{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}">
107 <separator string="Validation" colspan="4"/>
109 <field name="is_validation_require"/>
111 <group col="6" colspan="4" attrs="{'invisible':[('is_validation_require','=',False)]}">
112 <field name="validation_type" colspan="2"/>
113 <group colspan="2" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}">
114 <field name="validation_minimum_no" string="Between"/>
115 <field name="validation_maximum_no" string="and"/>
117 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_decimal_number')]}">
118 <field name="validation_minimum_float" string="Between"/>
119 <field name="validation_maximum_float" string="and"/>
121 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_date')]}">
122 <field name="validation_minimum_date" string="Between"/>
123 <field name="validation_maximum_date" string="and"/>
126 <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')]}">
127 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
128 <field name="validation_valid_err_msg" nolabel="1" colspan="4"/>
132 <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')]}">
133 <separator string="Required Answer" colspan="4"/>
135 <field name="is_require_answer"/>
136 <group col="6" colspan="4" attrs="{'invisible':[('is_require_answer','=',False)]}">
137 <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')]}">
138 <field name="required_type"/>
139 <group colspan="2" attrs="{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}">
140 <field name="req_ans" />
142 <group colspan="4" attrs="{'invisible':[('required_type','!=','a range')]}">
143 <field name="minimum_req_ans"/>
144 <field name="maximum_req_ans"/>
147 <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)]}">
148 <label string="When the question is not answered, display this error message:"/>
149 <field name="req_error_msg" colspan="4" nolabel="1"/>
151 <group colspan="4" attrs="{'invisible':[('type','!=','numerical_textboxes')]}">
153 <field name="numeric_required_sum"/>
156 <label string="When the choices do not add up correctly, display this error message"/>
157 <field name="numeric_required_sum_err_msg" colspan="4" nolabel="1"/>
159 <group colspan="4" attrs="{'invisible':[('type','!=','rating_scale')]}">
160 <field name="rating_allow_one_column_require"/>
165 <group attrs="{'invisible':[('type','!=','descriptive_text')]}">
166 <separator string="Descriptive Text" colspan="4"/>
167 <field name="descriptive_text" colspan="4" nolabel="1"/>
172 <tree string="Survey Question">
173 <field name="sequence" string="Seq"/>
174 <field name="question" colspan="4" select="1"/>
175 <field name="answer_choice_ids"/>
180 <group col="9" colspan="4">
181 <field name="state"/>
182 <button name="survey_draft"
183 string="Set to draft" states="cancel,close" type="object"
185 <button name="survey_open" string="Open"
186 states="draft" type="object" icon="gtk-go-forward"/>
187 <button name="survey_close"
188 string="Close" states="open" type="object" icon="gtk-close"/>
189 <button name="survey_cancel"
190 string="Cancel" states="open" type="object" icon="gtk-cancel"/>
193 <page string="Other">
194 <group colspan="6" col='4'>
195 <field name="max_response_limit" select="1"
196 attrs="{'readonly':[('state','in',('open','close'))]}"/>
197 <field name="response_user" select="2"
198 attrs="{'readonly':[('state','in',('open','close'))]}"/>
200 <field name="send_response"/>
202 <separator colspan="4" string="Survey Details"/>
203 <field name="note" colspan="4" nolabel="1"/>
205 <page string="History">
206 <field name="date_open" select="1"/>
207 <field name="date_close" select="2"/>
208 <field name="tot_start_survey" select="1"/>
209 <field name="tot_comp_survey" select="1"/>
210 <field name="history" colspan="4" nolabel="1">
211 <tree string="History">
212 <field name="user_id"/>
215 <form string="History">
216 <field name="user_id"/>
226 <record model ="ir.ui.view" id= "survey_tree">
227 <field name="name">survey_tree</field>
228 <field name="model">survey</field>
229 <field name="type">tree</field>
230 <field name="arch" type="xml">
231 <tree string="Survey">
232 <field name="title" select="1"/>
233 <field name="type" select="1"/>
234 <field name="date_open" select="1" string="Open Date"/>
235 <field name="responsible_id" select="2"/>
236 <field name="tot_start_survey" select="2" string="Started"/>
237 <field name="tot_comp_survey" select="2" string="Completed"/>
238 <field name="state" select="1"/>
239 <button name="%(action_view_survey_name)d" states="open,draft,close,cancel"
240 string="Test Survey" type="action" icon="gtk-execute" context="{'active':True,'survey_id': active_id}"/>
241 <button name="%(action_view_survey_name)d" states="open,draft,close,cancel"
242 string="Answer Survey" type="action" icon="gtk-new" context="{'survey_id': active_id}"/>
243 <button name="%(wizard_print_survey)d" states="open,draft,close,cancel"
244 string="Print Survey" type="action" icon="gtk-print" context="{'active':True,'survey_id': active_id}"/>
245 <button name="%(survey_browse_response)d" states="open,draft,close,cancel"
246 string="Print Answer" type="action" icon="gtk-print"/>
251 <record id="survey_search" model="ir.ui.view">
252 <field name="name">survey_search</field>
253 <field name="model">survey</field>
254 <field name="type">search</field>
255 <field name="arch" type="xml">
256 <search string="Search Survey">
257 <group col='10' colspan='4'>
258 <filter icon="terp-crm" string="Draft" domain="[('state','=','draft')]"/>
259 <separator orientation="vertical"/>
260 <filter string="Open" icon="terp-stock" domain="[('state','=','open')]"/>
261 <separator orientation="vertical"/>
262 <field name="title" select="1"/>
263 <field name="type" select="1"/>
264 <field name="responsible_id" select="1" widget="selection">
265 <filter string="MY" icon="terp-partner" domain="[('responsible_id','=',uid)]"/>
272 <record model="ir.actions.act_window" id="action_survey_form1">
273 <field name="name">Surveys</field>
274 <field name="res_model">survey</field>
275 <field name="view_type">form</field>
276 <field name="view_mode">tree,form</field>
277 <field name="view_id" ref="survey_tree"></field>
278 <field name="search_view_id" ref="survey_search"/>
282 <menuitem name="Surveys" id="menu_survey_form"
283 action="action_survey_form1" parent="menu_defination"
284 groups="group_survey_manager"/>
290 <record model="ir.ui.view" id="survey_page_form">
291 <field name="name">survey_page_form</field>
292 <field name="model">survey.page</field>
293 <field name="type">form</field>
294 <field name="arch" type="xml">
295 <form string="Survey Page">
296 <field name="title" colspan="4" select="1"/>
297 <field name="survey_id" select="1"/>
298 <field name="sequence"/>
299 <separator string="Description" colspan="4"/>
300 <field name="note" colspan="4" nolabel="1"/>
301 <field name="question_ids" colspan="4" nolabel="1" context="{'line_order': question_ids}">
302 <form string="Survey Question">
303 <field name="question" colspan="4" select="1"/>
304 <field name="sequence"/>
305 <field name="tot_resp" select="2"/>
306 <field name="type" on_change="on_change_type(type)"/>
307 <field name="in_visible_rating_weight" invisible="1"/>
308 <field name="in_visible_menu_choice" invisible="1"/>
309 <notebook colspan="4">
310 <page string="Options">
311 <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','!=','table')]}">
312 <separator string="Answer" colspan="4"/>
313 <group colspan="4" attrs="{'invisible':[('type','=','table')]}">
314 <field name="answer_choice_ids" nolabel="1" colspan="4" context="{'line_order': answer_choice_ids}"/>
316 <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')]}">
317 <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}"/>
318 <group colspan="4" attrs="{'invisible':[('type','!=','table')]}">
319 <field name="no_of_rows"/>
324 <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')]}">
325 <separator string="Comment Field" colspan="4"/>
327 <field name="is_comment_require"/>
329 <group attrs="{'invisible':[('is_comment_require','=',False)]}">
330 <group col="4" colspan="4">
331 <field name="comment_field_type" colspan="1"/>
332 <group colspan="2" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
333 <field colspan="2" name="comment_label" />
336 <group col="6" colspan="4" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
337 <field name="comment_valid_type" colspan="2"/>
338 <group colspan="2" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}">
339 <field name="comment_minimum_no" string="Between"/>
340 <field name="comment_maximum_no" string="and"/>
342 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}">
343 <field name="comment_minimum_float" string="Between"/>
344 <field name="comment_maximum_float" string="and"/>
346 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_date')]}">
347 <field name="comment_minimum_date" string="Between"/>
348 <field name="comment_maximum_date" string="and"/>
350 <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')]}">
351 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
352 <field name="comment_valid_err_msg" nolabel="1" colspan="4"/>
358 <group attrs="{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}">
359 <field name="comment_column"/>
360 <group colspan="2" attrs="{'invisible':[('comment_column','!=',True)]}">
361 <field name="column_name" colspan="2"/>
365 <group attrs="{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}">
366 <separator string="Validation" colspan="4"/>
368 <field name="is_validation_require"/>
370 <group col="6" colspan="4" attrs="{'invisible':[('is_validation_require','=',False)]}">
371 <field name="validation_type" colspan="2"/>
372 <group colspan="2" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}">
373 <field name="validation_minimum_no" string="Between"/>
374 <field name="validation_maximum_no" string="and"/>
376 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_decimal_number')]}">
377 <field name="validation_minimum_float" string="Between"/>
378 <field name="validation_maximum_float" string="and"/>
380 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_date')]}">
381 <field name="validation_minimum_date" string="Between"/>
382 <field name="validation_maximum_date" string="and"/>
385 <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')]}">
386 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
387 <field name="validation_valid_err_msg" nolabel="1" colspan="4"/>
391 <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')]}">
392 <separator string="Required Answer" colspan="4"/>
394 <field name="is_require_answer"/>
395 <group col="6" colspan="4" attrs="{'invisible':[('is_require_answer','=',False)]}">
396 <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')]}">
397 <field name="required_type"/>
398 <group colspan="2" attrs="{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}">
399 <field name="req_ans" />
401 <group colspan="4" attrs="{'invisible':[('required_type','!=','a range')]}">
402 <field name="minimum_req_ans"/>
403 <field name="maximum_req_ans"/>
406 <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)]}">
407 <label string="When the question is not answered, display this error message:"/>
408 <field name="req_error_msg" colspan="4" nolabel="1"/>
410 <group colspan="4" attrs="{'invisible':[('type','!=','numerical_textboxes')]}">
412 <field name="numeric_required_sum"/>
415 <label string="When the choices do not add up correctly, display this error message"/>
416 <field name="numeric_required_sum_err_msg" colspan="4" nolabel="1"/>
418 <group colspan="4" attrs="{'invisible':[('type','!=','rating_scale')]}">
419 <field name="rating_allow_one_column_require"/>
424 <group attrs="{'invisible':[('type','!=','descriptive_text')]}">
425 <separator string="Descriptive Text" colspan="4"/>
426 <field name="descriptive_text" colspan="4" nolabel="1"/>
431 <tree string="Survey Question">
432 <field name="sequence" string="Seq"/>
433 <field name="question" colspan="4" select="1"/>
434 <field name="answer_choice_ids"/>
442 <record model="ir.ui.view" id="survey_page_tree">
443 <field name="name">survey_page_tree</field>
444 <field name="model">survey.page</field>
445 <field name="type">tree</field>
446 <field name="arch" type="xml">
447 <tree string="Survey Page">
448 <field name="sequence" string="Seq"/>
449 <field name="title"/>
450 <field name="survey_id"/>
451 <field name="question_ids" string="#Questions"/>
456 <record model="ir.actions.act_window" id="action_survey_page_form">
457 <field name="name">Survey Pages</field>
458 <field name="res_model">survey.page</field>
459 <field name="view_type">form</field>
460 <field name="view_mode">tree,form</field>
461 <field name="view_id" ref="survey_page_tree"></field>
464 <menuitem name="Survey Pages" id="menu_survey_page_form1"
465 action="action_survey_page_form" parent='menu_defination'
466 groups="group_survey_manager"/>
468 <record model="ir.ui.view" id="survey_page_wizard_test1">
469 <field name="name">survey_page_wizard_test</field>
470 <field name="model">survey.page</field>
471 <field name="type">form</field>
472 <field name="arch" type="xml">
473 <form string="Survey Pages">
474 <field name="title" colspan="4" select="1"/>
475 <field name="sequence"/>
476 <separator string="Description" colspan="4"/>
477 <field name="note" colspan="4" nolabel="1"/>
479 <label string="" colspan="3"/>
480 <button name="survey_save" string="Ok" type="object" icon="gtk-go-back"/>
490 <record model="ir.ui.view" id="survey_question_form">
491 <field name="name">survey_question_form</field>
492 <field name="model">survey.question</field>
493 <field name="type">form</field>
494 <field name="arch" type="xml">
495 <form string="Survey Question">
496 <field name="question" colspan="4" select="1"/>
497 <field name="page_id" select="1"/>
498 <field name="sequence"/>
499 <field name="tot_resp" select="2"/>
500 <field name="type" on_change="on_change_type(type)"/>
501 <field name="in_visible_rating_weight" invisible="1"/>
502 <field name="in_visible_menu_choice" invisible="1"/>
503 <notebook colspan="4">
504 <page string="Options">
505 <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','!=','table')]}">
506 <separator string="Answer" colspan="4"/>
507 <group colspan="4" attrs="{'invisible':[('type','=','table')]}">
508 <field name="answer_choice_ids" nolabel="1" colspan="4" context="{'line_order': answer_choice_ids}"/>
510 <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')]}">
511 <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}"/>
512 <group colspan="4" attrs="{'invisible':[('type','!=','table')]}">
513 <field name="no_of_rows"/>
518 <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')]}">
519 <separator string="Comment Field" colspan="4"/>
521 <field name="is_comment_require"/>
523 <group attrs="{'invisible':[('is_comment_require','=',False)]}">
524 <group col="4" colspan="4">
525 <field name="comment_field_type" colspan="1"/>
526 <group colspan="2" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
527 <field colspan="2" name="comment_label" />
530 <group col="6" colspan="4" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
531 <field name="comment_valid_type" colspan="2"/>
532 <group colspan="2" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}">
533 <field name="comment_minimum_no" string="Between"/>
534 <field name="comment_maximum_no" string="and"/>
536 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}">
537 <field name="comment_minimum_float" string="Between"/>
538 <field name="comment_maximum_float" string="and"/>
540 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_date')]}">
541 <field name="comment_minimum_date" string="Between"/>
542 <field name="comment_maximum_date" string="and"/>
544 <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')]}">
545 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
546 <field name="comment_valid_err_msg" nolabel="1" colspan="4"/>
552 <group attrs="{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}">
553 <field name="comment_column"/>
554 <group colspan="2" attrs="{'invisible':[('comment_column','!=',True)]}">
555 <field name="column_name" colspan="2"/>
559 <group attrs="{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}">
560 <separator string="Validation" colspan="4"/>
562 <field name="is_validation_require"/>
564 <group col="6" colspan="4" attrs="{'invisible':[('is_validation_require','=',False)]}">
565 <field name="validation_type" colspan="2"/>
566 <group colspan="2" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}">
567 <field name="validation_minimum_no" string="Between"/>
568 <field name="validation_maximum_no" string="and"/>
570 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_decimal_number')]}">
571 <field name="validation_minimum_float" string="Between"/>
572 <field name="validation_maximum_float" string="and"/>
574 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_date')]}">
575 <field name="validation_minimum_date" string="Between"/>
576 <field name="validation_maximum_date" string="and"/>
579 <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')]}">
580 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
581 <field name="validation_valid_err_msg" nolabel="1" colspan="4"/>
585 <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')]}">
586 <separator string="Required Answer" colspan="4"/>
588 <field name="is_require_answer"/>
589 <group col="6" colspan="4" attrs="{'invisible':[('is_require_answer','=',False)]}">
590 <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')]}">
591 <field name="required_type"/>
592 <group colspan="2" attrs="{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}">
593 <field name="req_ans" />
595 <group colspan="4" attrs="{'invisible':[('required_type','!=','a range')]}">
596 <field name="minimum_req_ans"/>
597 <field name="maximum_req_ans"/>
600 <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)]}">
601 <label string="When the question is not answered, display this error message:"/>
602 <field name="req_error_msg" colspan="4" nolabel="1"/>
604 <group colspan="4" attrs="{'invisible':[('type','!=','numerical_textboxes')]}">
606 <field name="numeric_required_sum"/>
609 <label string="When the choices do not add up correctly, display this error message"/>
610 <field name="numeric_required_sum_err_msg" colspan="4" nolabel="1"/>
612 <group colspan="4" attrs="{'invisible':[('type','!=','rating_scale')]}">
613 <field name="rating_allow_one_column_require"/>
618 <group attrs="{'invisible':[('type','!=','descriptive_text')]}">
619 <separator string="Descriptive Text" colspan="4"/>
620 <field name="descriptive_text" colspan="4" nolabel="1"/>
628 <record model="ir.ui.view" id="survey_question_tree">
629 <field name="name">survey_question_tree</field>
630 <field name="model">survey.question</field>
631 <field name="type">tree</field>
632 <field name="arch" type="xml">
633 <tree string="Survey Question">
634 <field name="sequence" string="Seq"/>
635 <field name="question" colspan="4" select="1"/>
636 <field name="page_id" select="1"/>
637 <field name="survey" select="1"/>
638 <field name="type" select="2" />
643 <record model="ir.actions.act_window" id="action_survey_question_form">
644 <field name="name">Survey Questions</field>
645 <field name="res_model">survey.question</field>
646 <field name="view_type">form</field>
647 <field name="view_mode">tree,form</field>
648 <field name="view_id" ref="survey_question_tree"></field>
651 <menuitem name="Survey Question" id="menu_survey_question_form1"
652 action="action_survey_question_form" parent='menu_defination'
653 groups="group_survey_manager"/>
656 <record model="ir.ui.view" id="survey_question_wizard_test">
657 <field name="name">survey_question_wizard_test</field>
658 <field name="model">survey.question</field>
659 <field name="type">form</field>
660 <field name="arch" type="xml">
661 <form string="Survey Question">
662 <field name="question" colspan="4" select="1"/>
663 <field name="sequence"/>
664 <field name="tot_resp" select="2"/>
665 <field name="type" on_change="on_change_type(type)"/>
666 <field name="in_visible_rating_weight" invisible="1"/>
667 <field name="in_visible_menu_choice" invisible="1"/>
668 <notebook colspan="4">
669 <page string="Options">
670 <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','!=','table')]}">
671 <separator string="Answer" colspan="4"/>
672 <group colspan="4" attrs="{'invisible':[('type','=','table')]}">
673 <field name="answer_choice_ids" nolabel="1" colspan="4" context="{'line_order': answer_choice_ids}"/>
675 <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')]}">
676 <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}"/>
677 <group colspan="4" attrs="{'invisible':[('type','!=','table')]}">
678 <field name="no_of_rows"/>
683 <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')]}">
684 <separator string="Comment Field" colspan="4"/>
686 <field name="is_comment_require"/>
688 <group attrs="{'invisible':[('is_comment_require','=',False)]}">
689 <group col="4" colspan="4">
690 <field name="comment_field_type" colspan="1"/>
691 <group colspan="2" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
692 <field colspan="2" name="comment_label" />
695 <group col="6" colspan="4" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
696 <field name="comment_valid_type" colspan="2"/>
697 <group colspan="2" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}">
698 <field name="comment_minimum_no" string="Between"/>
699 <field name="comment_maximum_no" string="and"/>
701 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}">
702 <field name="comment_minimum_float" string="Between"/>
703 <field name="comment_maximum_float" string="and"/>
705 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_date')]}">
706 <field name="comment_minimum_date" string="Between"/>
707 <field name="comment_maximum_date" string="and"/>
709 <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')]}">
710 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
711 <field name="comment_valid_err_msg" nolabel="1" colspan="4"/>
714 <group 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')]}">
715 <field name="comment_column"/>
716 <group colspan="2" attrs="{'invisible':[('comment_column','!=',True)]}">
717 <field name="column_name" colspan="2"/>
723 <group attrs="{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}">
724 <separator string="Validation" colspan="4"/>
726 <field name="is_validation_require"/>
728 <group col="6" colspan="4" attrs="{'invisible':[('is_validation_require','=',False)]}">
729 <field name="validation_type" colspan="2"/>
730 <group colspan="2" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}">
731 <field name="validation_minimum_no" string="Between"/>
732 <field name="validation_maximum_no" string="and"/>
734 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_decimal_number')]}">
735 <field name="validation_minimum_float" string="Between"/>
736 <field name="validation_maximum_float" string="and"/>
738 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_date')]}">
739 <field name="validation_minimum_date" string="Between"/>
740 <field name="validation_maximum_date" string="and"/>
743 <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')]}">
744 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
745 <field name="validation_valid_err_msg" nolabel="1" colspan="4"/>
749 <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')]}">
750 <separator string="Required Answer" colspan="4"/>
752 <field name="is_require_answer"/>
753 <group col="6" colspan="4" attrs="{'invisible':[('is_require_answer','=',False)]}">
754 <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')]}">
755 <field name="required_type"/>
756 <group colspan="2" attrs="{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}">
757 <field name="req_ans" />
759 <group colspan="4" attrs="{'invisible':[('required_type','!=','a range')]}">
760 <field name="minimum_req_ans"/>
761 <field name="maximum_req_ans"/>
764 <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)]}">
765 <label string="When the question is not answered, display this error message:"/>
766 <field name="req_error_msg" colspan="4" nolabel="1"/>
768 <group colspan="4" attrs="{'invisible':[('type','!=','numerical_textboxes')]}">
770 <field name="numeric_required_sum"/>
773 <label string="When the choices do not add up correctly, display this error message"/>
774 <field name="numeric_required_sum_err_msg" colspan="4" nolabel="1"/>
776 <group colspan="4" attrs="{'invisible':[('type','!=','rating_scale')]}">
777 <field name="rating_allow_one_column_require"/>
782 <group attrs="{'invisible':[('type','!=','descriptive_text')]}">
783 <separator string="Descriptive Text" colspan="4"/>
784 <field name="descriptive_text" colspan="4" nolabel="1"/>
789 <label string="" colspan="3"/>
790 <button name="survey_save" string="Ok" type="object" icon="gtk-ok"/>
800 <record model ="ir.ui.view" id="survey_answer_form">
801 <field name="name">survey_answer_form</field>
802 <field name="model">survey.answer</field>
803 <field name="type">form</field>
804 <field name="arch" type="xml">
805 <form string="Survey Answer">
806 <field name="answer" colspan="4" select="1"/>
807 <field name="sequence"/>
813 <record model="ir.ui.view" id= "survey_answer_tree">
814 <field name="name">survey_answer_tree</field>
815 <field name="model">survey.answer</field>
816 <field name="type">tree</field>
817 <field name="arch" type="xml">
818 <tree editable="bottom" string="Survey Answer">
819 <field name="sequence" string="Seq"/>
820 <field name="answer" select="1"/>
829 <record model ="ir.ui.view" id= "survey_response_line_form">
830 <field name="name">survey_response_line_form</field>
831 <field name="model">survey.response.line</field>
832 <field name="type">form</field>
833 <field name="arch" type="xml">
834 <form string="Survey Response">
835 <field name="question_id"/>
836 <field name="date_create" select="1"/>
837 <notebook colspan="4">
838 <page string="Response">
839 <field name="response_answer_ids" colspan="4" nolabel="1"/>
840 <group col="5" colspan="4">
841 <field name="state"/>
842 <button name="response_draft"
843 string="Set to draft" states="done,skip" type="object"
845 <button name="response_done" string="Done"
846 states="draft" type="object" icon="gtk-go-forward"/>
847 <button name="response_skip" string="Skip"
848 states="draft" type="object" icon="gtk-close"/>
851 <page string="Single Textboxes">
852 <field name="single_text" colspan="4"/>
854 <page string="Comment">
855 <separator string="Description" colspan="4"/>
856 <field name="comment" nolabel="1" colspan="4"/>
858 <page string="Table Answer">
859 <field name="response_table_ids" colspan="4" nolabel="1">
860 <form string="Table">
861 <field name="column_id"/>
863 <field name="value"/>
865 <tree string="Table">
866 <field name="column_id"/>
868 <field name="value"/>
877 <record model="ir.ui.view" id="survey_response_line_tree">
878 <field name="name">survey_response_line_tree</field>
879 <field name="model">survey.response.line</field>
880 <field name="type">tree</field>
881 <field name="arch" type="xml">
882 <tree string="Survey Response Line">
883 <field name="page_id"/>
884 <field name="question_id"/>
885 <field name="date_create" select="1"/>
886 <field name="state"/>
895 <record model="ir.ui.view" id="survey_response_form">
896 <field name="name">survey_response_form</field>
897 <field name="model">survey.response</field>
898 <field name="type">form</field>
899 <field name="arch" type="xml">
900 <form string="Survey Response Answer">
901 <field name="survey_id" select="1"/>
902 <field name="date_create" select="1"/>
903 <field name="user_id" select="1"/>
904 <field name="response_type" select="1"/>
905 <field name="question_ids" nolabel="1" colspan="4" />
906 <field name="state" select="1"/>
911 <record model="ir.ui.view" id="survey_response_tree">
912 <field name="name">survey_response_tree</field>
913 <field name="model">survey.response</field>
914 <field name="type">tree</field>
915 <field name="arch" type="xml">
916 <tree string="Survey Response Answer">
917 <field name="survey_id" select="1"/>
918 <field name="date_create" select="1"/>
919 <field name="user_id" select="1"/>
920 <field name="response_type" select="1"/>
921 <field name="state" select="1"/>
927 Survey Response Answer
930 <record model="ir.ui.view" id="survey_response_answer_form">
931 <field name="name">survey_response_answer_form</field>
932 <field name="model">survey.response.answer</field>
933 <field name="type">form</field>
934 <field name="arch" type="xml">
935 <form string="Survey Response Answer">
937 <field name="answer_id"/>
938 <field name="answer" />
940 <field name="value_choice"/>
941 <label string="(Use Only Question Type is matrix_of_drop_down_menus)" align="0.0"/>
942 <field name="comment_field"/>
947 <record model="ir.ui.view" id="survey_response_answer_tree">
948 <field name="name">survey_response_answer_tree</field>
949 <field name="model">survey.response.answer</field>
950 <field name="type">tree</field>
951 <field name="arch" type="xml">
952 <tree editable="top" string="Survey Response Answer">
953 <field name="answer_id"/>
954 <field name="answer" />
955 <field name="value_choice" />
956 <field name="comment_field"/>
962 Survey Question Column Heading
965 <record model="ir.ui.view" id="survey_question_column_heading_form">
966 <field name="name">survey_question_column_heading_form</field>
967 <field name="model">survey.question.column.heading</field>
968 <field name="type">form</field>
969 <field name="arch" type="xml">
970 <form string="Column Heading">
971 <field name="title"/>
972 <field name="in_visible_rating_weight" invisible="1"/>
973 <field name="in_visible_menu_choice" invisible="1"/>
974 <group colspan="4" attrs="{'invisible':[('in_visible_rating_weight','!=',False)]}">
975 <field name="rating_weight"/>
976 <label align="0.0" string="Use if question type is rating_scale" />
978 <group colspan="4" attrs="{'invisible':[('in_visible_menu_choice','!=',False)]}">
979 <separator string="Menu Choices (each choice on separate lines)" colspan="4"/>
980 <field name="menu_choice" nolabel="1" colspan="4"/>
986 <record model="ir.ui.view" id="survey_question_column_heading_tree">
987 <field name="name">survey_question_column_heading_tree</field>
988 <field name="model">survey.question.column.heading</field>
989 <field name="type">tree</field>
990 <field name="arch" type="xml">
991 <tree editable="bottom" string="Column Heading">
992 <field name="title"/>
1001 <record model="ir.ui.view" id="survey_request_form">
1002 <field name="name">survey_request_form</field>
1003 <field name="model">survey.request</field>
1004 <field name="type">form</field>
1005 <field name="arch" type="xml">
1006 <form string="Survey Request">
1007 <field name="date_deadline"/>
1008 <field name="survey_id" widget="selection"/>
1009 <field name="user_id" on_change="on_change_user(user_id)"/>
1010 <field name="email"/>
1011 <field name="answer_ids" nolabel="1" colspan="4"/>
1012 <group colspan="4" col="5">
1013 <field name="state"/>
1014 <button name="survey_req_waiting_answer" string="Set to Watting Answer" states="cancel,done" type="object" icon="gtk-new"/>
1015 <button name="survey_req_done" string="Done" states="waiting_answer" type="object" icon="gtk-ok"/>
1016 <button name="survey_req_cancel" string="Cancelled" states="waiting_answer" type="object" icon="gtk-cancel"/>
1022 <record model="ir.ui.view" id="survey_request_tree">
1023 <field name="name">survey_request_tree</field>
1024 <field name="model">survey.request</field>
1025 <field name="type">tree</field>
1026 <field name="arch" type="xml">
1027 <tree string="Survey Request">
1028 <field name="date_deadline"/>
1029 <field name="survey_id" widget="selection"/>
1030 <field name="email" />
1031 <field name="state" />
1040 <record model="ir.ui.view" id="survey_type_form">
1041 <field name="name">survey_type_form</field>
1042 <field name="model">survey.type</field>
1043 <field name="type">form</field>
1044 <field name="arch" type="xml">
1045 <form string="Survey Type">
1046 <field name="name" select="1"/>
1047 <field name="code" select="1"/>
1052 <record model="ir.ui.view" id="survey_type_tree">
1053 <field name="name">survey_type_tree</field>
1054 <field name="model">survey.type</field>
1055 <field name="type">tree</field>
1056 <field name="arch" type="xml">
1057 <tree string="Survey Type">
1058 <field name="name" select="1"/>
1059 <field name="code" select="1"/>
1064 <record model="ir.actions.act_window" id="action_survey_type_form">
1065 <field name="name">Survey Type</field>
1066 <field name="res_model">survey.type</field>
1067 <field name="view_type">form</field>
1068 <field name="view_mode">tree,form</field>
1069 <field name="view_id" ref="survey_type_tree"></field>
1072 <menuitem name="Survey Types" id="menu_survey_type_form1"
1073 action="action_survey_type_form" parent='menu_survey_config'
1074 groups="group_survey_manager"/>
1076 <act_window domain="[('survey_id', '=', active_id)]"
1077 id="act_survey_pages"
1079 res_model="survey.page"
1080 src_model="survey"/>
1082 <act_window domain="[('survey', '=', active_id)]"
1083 id="act_survey_question"
1084 name="All Questions"
1085 res_model="survey.question"
1086 src_model="survey"/>
1089 <act_window domain="[('page_id', '=', active_id)]"
1090 id="act_survey_page_question"
1091 name="Survey Questions"
1092 res_model="survey.question"
1093 src_model="survey.page"/>
1095 <act_window domain="[('question_id', '=', active_id)]"
1096 id="act_survey_answer"
1097 name="Survey Answers"
1098 res_model="survey.answer"
1099 src_model="survey.question"/>
1101 <act_window domain="[('survey_id', '=', active_id)]"
1102 id="act_survey_response"
1103 name="Survey Response"
1104 res_model="survey.response"
1105 src_model="survey"/>
1107 <menuitem name="Answer a Survey" id="menu_run_survey_form" sequence="2"
1108 action="action_view_survey_name" parent="main_menu_survey"
1109 groups="group_survey_manager,group_survey_user" icon="STOCK_INDEX"/>
1111 <menuitem action="wizard_browse_answer" id="menu_wizard_browse_answer"
1112 parent="main_menu_survey" type="wizard"/>