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 <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"/>
97 <group attrs="{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}">
98 <field name="comment_column"/>
99 <group colspan="2" attrs="{'invisible':[('comment_column','!=',True)]}">
100 <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'),('type','!=','multiple_textboxes_diff_type')]}">
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'),('type','!=','multiple_textboxes_diff_type')]}">
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 <field name="in_visible_answer_type" invisible="1"/>
310 <notebook colspan="4">
311 <page string="Options">
312 <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')]}">
313 <separator string="Answer" colspan="4"/>
314 <group colspan="4" attrs="{'invisible':[('type','=','table')]}">
315 <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}"/>
317 <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')]}">
318 <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}"/>
319 <group colspan="4" attrs="{'invisible':[('type','!=','table')]}">
320 <field name="no_of_rows"/>
325 <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')]}">
326 <separator string="Comment Field" colspan="4"/>
328 <field name="is_comment_require"/>
330 <group attrs="{'invisible':[('is_comment_require','=',False)]}">
331 <group col="4" colspan="4">
332 <field name="comment_field_type" colspan="1"/>
333 <group colspan="2" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
334 <field colspan="2" name="comment_label" />
337 <group col="6" colspan="4" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
338 <field name="comment_valid_type" colspan="2"/>
339 <group colspan="2" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}">
340 <field name="comment_minimum_no" string="Between"/>
341 <field name="comment_maximum_no" string="and"/>
343 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}">
344 <field name="comment_minimum_float" string="Between"/>
345 <field name="comment_maximum_float" string="and"/>
347 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_date')]}">
348 <field name="comment_minimum_date" string="Between"/>
349 <field name="comment_maximum_date" string="and"/>
351 <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')]}">
352 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
353 <field name="comment_valid_err_msg" nolabel="1" colspan="4"/>
356 <group attrs="{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}">
357 <field name="comment_column"/>
358 <group colspan="2" attrs="{'invisible':[('comment_column','!=',True)]}">
359 <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'),('type','!=','multiple_textboxes_diff_type')]}">
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'),('type','!=','multiple_textboxes_diff_type')]}">
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"/>
432 <tree string="Survey Question">
433 <field name="sequence" string="Seq"/>
434 <field name="question" colspan="4" select="1"/>
435 <field name="answer_choice_ids"/>
443 <record model="ir.ui.view" id="survey_page_tree">
444 <field name="name">survey_page_tree</field>
445 <field name="model">survey.page</field>
446 <field name="type">tree</field>
447 <field name="arch" type="xml">
448 <tree string="Survey Page">
449 <field name="sequence" string="Seq"/>
450 <field name="title"/>
451 <field name="survey_id"/>
452 <field name="question_ids" string="#Questions"/>
457 <record model="ir.actions.act_window" id="action_survey_page_form">
458 <field name="name">Survey Pages</field>
459 <field name="res_model">survey.page</field>
460 <field name="view_type">form</field>
461 <field name="view_mode">tree,form</field>
462 <field name="view_id" ref="survey_page_tree"></field>
465 <menuitem name="Survey Pages" id="menu_survey_page_form1"
466 action="action_survey_page_form" parent='menu_defination'
467 groups="group_survey_manager"/>
469 <record model="ir.ui.view" id="survey_page_wizard_test1">
470 <field name="name">survey_page_wizard_test</field>
471 <field name="model">survey.page</field>
472 <field name="type">form</field>
473 <field name="arch" type="xml">
474 <form string="Survey Pages">
475 <field name="title" colspan="4" select="1"/>
476 <field name="sequence"/>
477 <separator string="Description" colspan="4"/>
478 <field name="note" colspan="4" nolabel="1"/>
480 <label string="" colspan="3"/>
481 <button name="survey_save" string="Ok" type="object" icon="gtk-go-back"/>
491 <record model="ir.ui.view" id="survey_question_form">
492 <field name="name">survey_question_form</field>
493 <field name="model">survey.question</field>
494 <field name="type">form</field>
495 <field name="arch" type="xml">
496 <form string="Survey Question">
497 <field name="question" colspan="4" select="1"/>
498 <field name="page_id" select="1"/>
499 <field name="sequence"/>
500 <field name="tot_resp" select="2"/>
501 <field name="type" on_change="on_change_type(type)"/>
502 <field name="in_visible_rating_weight" invisible="1"/>
503 <field name="in_visible_menu_choice" invisible="1"/>
504 <field name="in_visible_answer_type" invisible="1"/>
505 <notebook colspan="4">
506 <page string="Options">
507 <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')]}">
508 <separator string="Answer" colspan="4"/>
509 <group colspan="4" attrs="{'invisible':[('type','=','table')]}">
510 <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}"/>
512 <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')]}">
513 <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}"/>
514 <group colspan="4" attrs="{'invisible':[('type','!=','table')]}">
515 <field name="no_of_rows"/>
520 <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')]}">
521 <separator string="Comment Field" colspan="4"/>
523 <field name="is_comment_require"/>
525 <group attrs="{'invisible':[('is_comment_require','=',False)]}">
526 <group col="4" colspan="4">
527 <field name="comment_field_type" colspan="1"/>
528 <group colspan="2" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
529 <field colspan="2" name="comment_label" />
532 <group col="6" colspan="4" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
533 <field name="comment_valid_type" colspan="2"/>
534 <group colspan="2" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}">
535 <field name="comment_minimum_no" string="Between"/>
536 <field name="comment_maximum_no" string="and"/>
538 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}">
539 <field name="comment_minimum_float" string="Between"/>
540 <field name="comment_maximum_float" string="and"/>
542 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_date')]}">
543 <field name="comment_minimum_date" string="Between"/>
544 <field name="comment_maximum_date" string="and"/>
546 <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')]}">
547 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
548 <field name="comment_valid_err_msg" nolabel="1" colspan="4"/>
551 <group attrs="{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}">
552 <field name="comment_column"/>
553 <group colspan="2" attrs="{'invisible':[('comment_column','!=',True)]}">
554 <field name="column_name" colspan="2"/>
560 <group attrs="{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}">
561 <separator string="Validation" colspan="4"/>
563 <field name="is_validation_require"/>
565 <group col="6" colspan="4" attrs="{'invisible':[('is_validation_require','=',False)]}">
566 <field name="validation_type" colspan="2"/>
567 <group colspan="2" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}">
568 <field name="validation_minimum_no" string="Between"/>
569 <field name="validation_maximum_no" string="and"/>
571 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_decimal_number')]}">
572 <field name="validation_minimum_float" string="Between"/>
573 <field name="validation_maximum_float" string="and"/>
575 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_date')]}">
576 <field name="validation_minimum_date" string="Between"/>
577 <field name="validation_maximum_date" string="and"/>
580 <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')]}">
581 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
582 <field name="validation_valid_err_msg" nolabel="1" colspan="4"/>
586 <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')]}">
587 <separator string="Required Answer" colspan="4"/>
589 <field name="is_require_answer"/>
590 <group col="6" colspan="4" attrs="{'invisible':[('is_require_answer','=',False)]}">
591 <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')]}">
592 <field name="required_type"/>
593 <group colspan="2" attrs="{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}">
594 <field name="req_ans" />
596 <group colspan="4" attrs="{'invisible':[('required_type','!=','a range')]}">
597 <field name="minimum_req_ans"/>
598 <field name="maximum_req_ans"/>
601 <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)]}">
602 <label string="When the question is not answered, display this error message:"/>
603 <field name="req_error_msg" colspan="4" nolabel="1"/>
605 <group colspan="4" attrs="{'invisible':[('type','!=','numerical_textboxes')]}">
607 <field name="numeric_required_sum"/>
610 <label string="When the choices do not add up correctly, display this error message"/>
611 <field name="numeric_required_sum_err_msg" colspan="4" nolabel="1"/>
613 <group colspan="4" attrs="{'invisible':[('type','!=','rating_scale')]}">
614 <field name="rating_allow_one_column_require"/>
619 <group attrs="{'invisible':[('type','!=','descriptive_text')]}">
620 <separator string="Descriptive Text" colspan="4"/>
621 <field name="descriptive_text" colspan="4" nolabel="1"/>
629 <record model="ir.ui.view" id="survey_question_tree">
630 <field name="name">survey_question_tree</field>
631 <field name="model">survey.question</field>
632 <field name="type">tree</field>
633 <field name="arch" type="xml">
634 <tree string="Survey Question">
635 <field name="sequence" string="Seq"/>
636 <field name="question" colspan="4" select="1"/>
637 <field name="page_id" select="1"/>
638 <field name="survey" select="1"/>
639 <field name="type" select="2" />
644 <record model="ir.actions.act_window" id="action_survey_question_form">
645 <field name="name">Survey Questions</field>
646 <field name="res_model">survey.question</field>
647 <field name="view_type">form</field>
648 <field name="view_mode">tree,form</field>
649 <field name="view_id" ref="survey_question_tree"></field>
652 <menuitem name="Survey Question" id="menu_survey_question_form1"
653 action="action_survey_question_form" parent='menu_defination'
654 groups="group_survey_manager"/>
657 <record model="ir.ui.view" id="survey_question_wizard_test">
658 <field name="name">survey_question_wizard_test</field>
659 <field name="model">survey.question</field>
660 <field name="type">form</field>
661 <field name="arch" type="xml">
662 <form string="Survey Question">
663 <field name="question" colspan="4" select="1"/>
664 <field name="sequence"/>
665 <field name="tot_resp" select="2"/>
666 <field name="type" on_change="on_change_type(type)"/>
667 <field name="in_visible_rating_weight" invisible="1"/>
668 <field name="in_visible_menu_choice" invisible="1"/>
669 <field name="in_visible_answer_type" invisible="1"/>
670 <notebook colspan="4">
671 <page string="Options">
672 <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')]}">
673 <separator string="Answer" colspan="4"/>
674 <group colspan="4" attrs="{'invisible':[('type','=','table')]}">
675 <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}"/>
677 <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')]}">
678 <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}"/>
679 <group colspan="4" attrs="{'invisible':[('type','!=','table')]}">
680 <field name="no_of_rows"/>
685 <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')]}">
686 <separator string="Comment Field" colspan="4"/>
688 <field name="is_comment_require"/>
690 <group attrs="{'invisible':[('is_comment_require','=',False)]}">
691 <group col="4" colspan="4">
692 <field name="comment_field_type" colspan="1"/>
693 <group colspan="2" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
694 <field colspan="2" name="comment_label" />
697 <group col="6" colspan="4" attrs="{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}">
698 <field name="comment_valid_type" colspan="2"/>
699 <group colspan="2" attrs="{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}">
700 <field name="comment_minimum_no" string="Between"/>
701 <field name="comment_maximum_no" string="and"/>
703 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}">
704 <field name="comment_minimum_float" string="Between"/>
705 <field name="comment_maximum_float" string="and"/>
707 <group colspan="4" attrs="{'invisible':[('comment_valid_type','!=','must_be_date')]}">
708 <field name="comment_minimum_date" string="Between"/>
709 <field name="comment_maximum_date" string="and"/>
711 <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')]}">
712 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
713 <field name="comment_valid_err_msg" nolabel="1" colspan="4"/>
716 <group attrs="{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}">
717 <field name="comment_column"/>
718 <group colspan="2" attrs="{'invisible':[('comment_column','!=',True)]}">
719 <field name="column_name" colspan="2"/>
725 <group attrs="{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}">
726 <separator string="Validation" colspan="4"/>
728 <field name="is_validation_require"/>
730 <group col="6" colspan="4" attrs="{'invisible':[('is_validation_require','=',False)]}">
731 <field name="validation_type" colspan="2"/>
732 <group colspan="2" attrs="{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}">
733 <field name="validation_minimum_no" string="Between"/>
734 <field name="validation_maximum_no" string="and"/>
736 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_decimal_number')]}">
737 <field name="validation_minimum_float" string="Between"/>
738 <field name="validation_maximum_float" string="and"/>
740 <group colspan="4" attrs="{'invisible':[('validation_type','!=','must_be_date')]}">
741 <field name="validation_minimum_date" string="Between"/>
742 <field name="validation_maximum_date" string="and"/>
745 <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')]}">
746 <label string="When the comment is an invalid format, display this error message" colspan="4"/>
747 <field name="validation_valid_err_msg" nolabel="1" colspan="4"/>
751 <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')]}">
752 <separator string="Required Answer" colspan="4"/>
754 <field name="is_require_answer"/>
755 <group col="6" colspan="4" attrs="{'invisible':[('is_require_answer','=',False)]}">
756 <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')]}">
757 <field name="required_type"/>
758 <group colspan="2" attrs="{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}">
759 <field name="req_ans" />
761 <group colspan="4" attrs="{'invisible':[('required_type','!=','a range')]}">
762 <field name="minimum_req_ans"/>
763 <field name="maximum_req_ans"/>
766 <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)]}">
767 <label string="When the question is not answered, display this error message:"/>
768 <field name="req_error_msg" colspan="4" nolabel="1"/>
770 <group colspan="4" attrs="{'invisible':[('type','!=','numerical_textboxes')]}">
772 <field name="numeric_required_sum"/>
775 <label string="When the choices do not add up correctly, display this error message"/>
776 <field name="numeric_required_sum_err_msg" colspan="4" nolabel="1"/>
778 <group colspan="4" attrs="{'invisible':[('type','!=','rating_scale')]}">
779 <field name="rating_allow_one_column_require"/>
784 <group attrs="{'invisible':[('type','!=','descriptive_text')]}">
785 <separator string="Descriptive Text" colspan="4"/>
786 <field name="descriptive_text" colspan="4" nolabel="1"/>
791 <label string="" colspan="3"/>
792 <button name="survey_save" string="Ok" type="object" icon="gtk-ok"/>
802 <record model ="ir.ui.view" id="survey_answer_form">
803 <field name="name">survey_answer_form</field>
804 <field name="model">survey.answer</field>
805 <field name="type">form</field>
806 <field name="arch" type="xml">
807 <form string="Survey Answer">
808 <field name="answer" colspan="4" select="1"/>
809 <field name="sequence"/>
810 <field name="in_visible_answer_type" invisible="1"/>
811 <group colspan="4" attrs="{'invisible':[('in_visible_answer_type','=',True)]}">
819 <record model="ir.ui.view" id= "survey_answer_tree">
820 <field name="name">survey_answer_tree</field>
821 <field name="model">survey.answer</field>
822 <field name="type">tree</field>
823 <field name="arch" type="xml">
824 <tree editable="top" string="Survey Answer">
825 <field name="sequence" string="Seq"/>
826 <field name="answer" select="1"/>
835 <record model ="ir.ui.view" id= "survey_response_line_form">
836 <field name="name">survey_response_line_form</field>
837 <field name="model">survey.response.line</field>
838 <field name="type">form</field>
839 <field name="arch" type="xml">
840 <form string="Survey Response">
841 <field name="question_id"/>
842 <field name="date_create" select="1"/>
843 <notebook colspan="4">
844 <page string="Response">
845 <field name="response_answer_ids" colspan="4" nolabel="1"/>
846 <group col="5" colspan="4">
847 <field name="state"/>
848 <button name="response_draft"
849 string="Set to draft" states="done,skip" type="object"
851 <button name="response_done" string="Done"
852 states="draft" type="object" icon="gtk-go-forward"/>
853 <button name="response_skip" string="Skip"
854 states="draft" type="object" icon="gtk-close"/>
857 <page string="Single Textboxes">
858 <field name="single_text" colspan="4"/>
860 <page string="Comment">
861 <separator string="Description" colspan="4"/>
862 <field name="comment" nolabel="1" colspan="4"/>
864 <page string="Table Answer">
865 <field name="response_table_ids" colspan="4" nolabel="1">
866 <form string="Table">
867 <field name="column_id"/>
869 <field name="value"/>
871 <tree string="Table">
872 <field name="column_id"/>
874 <field name="value"/>
883 <record model="ir.ui.view" id="survey_response_line_tree">
884 <field name="name">survey_response_line_tree</field>
885 <field name="model">survey.response.line</field>
886 <field name="type">tree</field>
887 <field name="arch" type="xml">
888 <tree string="Survey Response Line">
889 <field name="page_id"/>
890 <field name="question_id"/>
891 <field name="date_create" select="1"/>
892 <field name="state"/>
901 <record model="ir.ui.view" id="survey_response_form">
902 <field name="name">survey_response_form</field>
903 <field name="model">survey.response</field>
904 <field name="type">form</field>
905 <field name="arch" type="xml">
906 <form string="Survey Response Answer">
907 <field name="survey_id" select="1"/>
908 <field name="date_create" select="1"/>
909 <field name="user_id" select="1"/>
910 <field name="response_type" select="1"/>
911 <field name="question_ids" nolabel="1" colspan="4" />
912 <field name="state" select="1"/>
917 <record model="ir.ui.view" id="survey_response_tree">
918 <field name="name">survey_response_tree</field>
919 <field name="model">survey.response</field>
920 <field name="type">tree</field>
921 <field name="arch" type="xml">
922 <tree string="Survey Response Answer">
923 <field name="survey_id" select="1"/>
924 <field name="date_create" select="1"/>
925 <field name="user_id" select="1"/>
926 <field name="response_type" select="1"/>
927 <field name="state" select="1"/>
933 Survey Response Answer
936 <record model="ir.ui.view" id="survey_response_answer_form">
937 <field name="name">survey_response_answer_form</field>
938 <field name="model">survey.response.answer</field>
939 <field name="type">form</field>
940 <field name="arch" type="xml">
941 <form string="Survey Response Answer">
943 <field name="answer_id"/>
944 <field name="answer" />
946 <field name="value_choice"/>
947 <label string="(Use Only Question Type is matrix_of_drop_down_menus)" align="0.0"/>
948 <group colspan="4" col="4">
949 <field name="comment_field"/>
950 <field name="column_id"/>
956 <record model="ir.ui.view" id="survey_response_answer_tree">
957 <field name="name">survey_response_answer_tree</field>
958 <field name="model">survey.response.answer</field>
959 <field name="type">tree</field>
960 <field name="arch" type="xml">
961 <tree editable="top" string="Survey Response Answer">
962 <field name="answer_id"/>
963 <field name="answer" />
964 <field name="value_choice" />
965 <field name="column_id"/>
966 <field name="comment_field"/>
972 Survey Question Column Heading
975 <record model="ir.ui.view" id="survey_question_column_heading_form">
976 <field name="name">survey_question_column_heading_form</field>
977 <field name="model">survey.question.column.heading</field>
978 <field name="type">form</field>
979 <field name="arch" type="xml">
980 <form string="Column Heading">
981 <field name="title"/>
982 <field name="in_visible_rating_weight" invisible="1"/>
983 <field name="in_visible_menu_choice" invisible="1"/>
984 <group colspan="4" attrs="{'invisible':[('in_visible_rating_weight','!=',False)]}">
985 <field name="rating_weight"/>
986 <label align="0.0" string="Use if question type is rating_scale" />
988 <group colspan="4" attrs="{'invisible':[('in_visible_menu_choice','!=',False)]}">
989 <separator string="Menu Choices (each choice on separate lines)" colspan="4"/>
990 <field name="menu_choice" nolabel="1" colspan="4"/>
996 <record model="ir.ui.view" id="survey_question_column_heading_tree">
997 <field name="name">survey_question_column_heading_tree</field>
998 <field name="model">survey.question.column.heading</field>
999 <field name="type">tree</field>
1000 <field name="arch" type="xml">
1001 <tree editable="bottom" string="Column Heading">
1002 <field name="title"/>
1011 <record model="ir.ui.view" id="survey_request_form">
1012 <field name="name">survey_request_form</field>
1013 <field name="model">survey.request</field>
1014 <field name="type">form</field>
1015 <field name="arch" type="xml">
1016 <form string="Survey Request">
1017 <field name="date_deadline"/>
1018 <field name="survey_id" widget="selection"/>
1019 <field name="user_id" on_change="on_change_user(user_id)"/>
1020 <field name="email"/>
1021 <field name="answer_ids" nolabel="1" colspan="4"/>
1022 <group colspan="4" col="5">
1023 <field name="state"/>
1024 <button name="survey_req_waiting_answer" string="Set to Watting Answer" states="cancel,done" type="object" icon="gtk-new"/>
1025 <button name="survey_req_done" string="Done" states="waiting_answer" type="object" icon="gtk-ok"/>
1026 <button name="survey_req_cancel" string="Cancelled" states="waiting_answer" type="object" icon="gtk-cancel"/>
1032 <record model="ir.ui.view" id="survey_request_tree">
1033 <field name="name">survey_request_tree</field>
1034 <field name="model">survey.request</field>
1035 <field name="type">tree</field>
1036 <field name="arch" type="xml">
1037 <tree string="Survey Request">
1038 <field name="date_deadline"/>
1039 <field name="survey_id" widget="selection"/>
1040 <field name="email" />
1041 <field name="state" />
1050 <record model="ir.ui.view" id="survey_type_form">
1051 <field name="name">survey_type_form</field>
1052 <field name="model">survey.type</field>
1053 <field name="type">form</field>
1054 <field name="arch" type="xml">
1055 <form string="Survey Type">
1056 <field name="name" select="1"/>
1057 <field name="code" select="1"/>
1062 <record model="ir.ui.view" id="survey_type_tree">
1063 <field name="name">survey_type_tree</field>
1064 <field name="model">survey.type</field>
1065 <field name="type">tree</field>
1066 <field name="arch" type="xml">
1067 <tree string="Survey Type">
1068 <field name="name" select="1"/>
1069 <field name="code" select="1"/>
1074 <record model="ir.actions.act_window" id="action_survey_type_form">
1075 <field name="name">Survey Type</field>
1076 <field name="res_model">survey.type</field>
1077 <field name="view_type">form</field>
1078 <field name="view_mode">tree,form</field>
1079 <field name="view_id" ref="survey_type_tree"></field>
1082 <menuitem name="Survey Types" id="menu_survey_type_form1"
1083 action="action_survey_type_form" parent='menu_survey_config'
1084 groups="group_survey_manager"/>
1086 <act_window domain="[('survey_id', '=', active_id)]"
1087 id="act_survey_pages"
1089 res_model="survey.page"
1090 src_model="survey"/>
1092 <act_window domain="[('survey', '=', active_id)]"
1093 id="act_survey_question"
1094 name="All Questions"
1095 res_model="survey.question"
1096 src_model="survey"/>
1099 <act_window domain="[('page_id', '=', active_id)]"
1100 id="act_survey_page_question"
1101 name="Survey Questions"
1102 res_model="survey.question"
1103 src_model="survey.page"/>
1105 <act_window domain="[('question_id', '=', active_id)]"
1106 id="act_survey_answer"
1107 name="Survey Answers"
1108 res_model="survey.answer"
1109 src_model="survey.question"/>
1111 <act_window domain="[('survey_id', '=', active_id)]"
1112 id="act_survey_response"
1113 name="Survey Response"
1114 res_model="survey.response"
1115 src_model="survey"/>
1117 <menuitem name="Answer a Survey" id="menu_run_survey_form" sequence="2"
1118 action="action_view_survey_name" parent="main_menu_survey"
1119 groups="group_survey_manager,group_survey_user" icon="STOCK_INDEX"/>
1121 <menuitem action="wizard_browse_answer" id="menu_wizard_browse_answer"
1122 parent="main_menu_survey" type="wizard"/>