2010-01-20 14:28:28 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
<data >
2011-03-08 12:59:11 +00:00
<menuitem name= "Surveys" id= "menu_surveys" parent= "base.menu_tools" sequence= "2" groups= "base.group_tool_user,base.group_tool_manager,base.group_survey_user" />
2010-04-16 09:16:25 +00:00
<menuitem name= "Define Surveys" id= "menu_define_survey"
2010-10-06 09:28:07 +00:00
groups="base.group_tool_manager"
2010-06-17 13:44:20 +00:00
parent="menu_surveys" />
2011-03-08 12:59:11 +00:00
<menuitem id= "menu_answer_surveys" name= "Answer Surveys" parent= "menu_surveys" groups= "base.group_tool_user,base.group_tool_manager,base.group_survey_user" />
2010-04-16 09:16:25 +00:00
<menuitem name= "Reporting" parent= "base.menu_tools"
2010-08-13 06:06:34 +00:00
id="base.menu_lunch_reporting" sequence="6"/>
2012-03-05 13:29:15 +00:00
<menuitem name= "Reporting" id= "menu_reporting" parent= "menu_surveys" sequence= "60" />
2010-01-20 14:28:28 +00:00
<!--
Survey
-->
2010-04-16 09:16:25 +00:00
2010-01-20 14:28:28 +00:00
<record model= "ir.ui.view" id= "survey_form" >
<field name= "name" > survey_form</field>
<field name= "model" > survey</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2012-06-09 22:12:48 +00:00
<form string= "Survey" >
2012-06-04 12:11:39 +00:00
<header >
2012-05-22 09:14:45 +00:00
<button name= "survey_open" string= "Open" states= "cancel,close" type= "object" />
<button name= "survey_close" string= "Close" states= "open" type= "object" />
<button name= "survey_cancel" string= "Cancel" states= "open" type= "object" />
2012-06-04 10:50:56 +00:00
<field name= "state" widget= "statusbar" statusbar_visible= "open,close" />
2012-06-04 12:11:39 +00:00
</header>
2012-06-09 22:12:48 +00:00
<sheet >
2010-04-16 09:16:25 +00:00
<group col= "6" colspan= "6" >
2012-06-09 22:12:48 +00:00
<field name= "title" select= "1" />
2010-04-16 09:16:25 +00:00
<field name= "responsible_id" />
2010-09-29 06:23:16 +00:00
<field name= "id" invisible= "1" />
2010-04-16 09:16:25 +00:00
<button name= "%(action_view_survey_question_message)d" states= "open,draft,close,cancel"
string="Test Survey" type="action" icon="gtk-new"
2010-09-29 06:23:16 +00:00
context="{'active':True,'survey_id': active_id}" attrs="{'invisible':[('id','=',0)]}"/>
2010-04-16 09:16:25 +00:00
<button name= "%(action_view_survey_question_message)d" states= "open,draft,close,cancel"
string="Answer Survey" type="action" icon="gtk-execute" context="{'survey_id': active_id}" attrs="{'invisible':[('state','!=','open')]}"/>
<button name= "%(action_view_survey_question_message)d" states= "open,draft,close,cancel"
string="Edit Survey" type="action" icon="gtk-edit" context="{'active':True,'edit' : True,'survey_id': active_id}"/>
</group>
2012-06-09 22:12:48 +00:00
<notebook >
2010-01-20 14:28:28 +00:00
<page string= "Survey" >
2012-01-12 05:35:24 +00:00
<field name= "page_ids" colspan= "4" nolabel= "1" mode= "form,tree" >
2010-01-20 14:28:28 +00:00
<form string= "Survey Page" >
<field name= "title" select= "1" />
2012-04-25 14:35:28 +00:00
<field name= "sequence" groups= "base.group_no_one" />
2011-11-30 05:34:26 +00:00
<separator string= "Description" colspan= "4" />
2010-01-20 14:28:28 +00:00
<field name= "note" colspan= "4" nolabel= "1" />
2012-01-13 09:16:45 +00:00
<field name= "question_ids" height= "200" width= "200" colspan= "4" nolabel= "1" >
2010-06-21 13:02:43 +00:00
<form string= "Survey Question" >
<group col= "6" colspan= "6" height= "600" width= "200" >
2010-01-20 14:28:28 +00:00
<field name= "question" colspan= "4" select= "1" />
<field name= "sequence" />
2010-04-18 15:32:44 +00:00
<field name= "tot_resp" />
2010-01-20 14:28:28 +00:00
<field name= "type" on_change= "on_change_type(type)" />
2010-04-16 09:16:25 +00:00
<field name= "in_visible_rating_weight" invisible= "1" />
<field name= "in_visible_menu_choice" invisible= "1" />
<field name= "in_visible_answer_type" invisible= "1" />
<notebook colspan= "4" >
<page string= "Options" >
<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')]}" >
<separator string= "Answer" colspan= "4" />
<group colspan= "4" attrs= "{'invisible':[('type','=','table')]}" >
2012-01-12 05:35:24 +00:00
<field name= "answer_choice_ids" nolabel= "1" colspan= "4" context= "{'in_visible_answer_type': in_visible_answer_type}" />
2010-04-16 09:16:25 +00:00
</group>
<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')]}" >
2012-01-06 11:09:14 +00:00
<field name= "column_heading_ids" colspan= "4" nolabel= "1" context= "{'in_visible_rating_weight':in_visible_rating_weight,'in_visible_menu_choice':in_visible_menu_choice}" />
2010-04-16 09:16:25 +00:00
<group colspan= "4" attrs= "{'invisible':[('type','!=','table')]}" >
<field name= "no_of_rows" />
</group>
</group>
</group>
<newline />
<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')]}" >
<separator string= "Comment Field" colspan= "4" />
<group colspan= "4" >
<field name= "is_comment_require" />
</group>
<group attrs= "{'invisible':[('is_comment_require','=',False)]}" >
<group col= "4" colspan= "4" >
<field name= "comment_field_type" colspan= "1" />
<group colspan= "2" attrs= "{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}" >
<field colspan= "2" name= "comment_label" />
</group>
</group>
<group col= "6" colspan= "4" attrs= "{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}" >
<field name= "comment_valid_type" colspan= "2" />
<group colspan= "2" attrs= "{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}" >
<field name= "comment_minimum_no" string= "Between" />
<field name= "comment_maximum_no" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}" >
<field name= "comment_minimum_float" string= "Between" />
<field name= "comment_maximum_float" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('comment_valid_type','!=','must_be_date')]}" >
<field name= "comment_minimum_date" string= "Between" />
<field name= "comment_maximum_date" string= "and" />
</group>
<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')]}" >
<label string= "When the comment is an invalid format, display this error message" colspan= "4" />
<field name= "comment_valid_err_msg" nolabel= "1" colspan= "4" />
</group>
</group>
</group>
</group>
<newline />
<group attrs= "{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}" >
<field name= "comment_column" />
<group colspan= "2" attrs= "{'invisible':[('comment_column','!=',True)]}" >
<field name= "column_name" colspan= "2" />
</group>
</group>
<newline />
<group attrs= "{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}" >
<separator string= "Validation" colspan= "4" />
<group colspan= "4" >
<field name= "is_validation_require" />
</group>
<group col= "6" colspan= "4" attrs= "{'invisible':[('is_validation_require','=',False)]}" >
<field name= "validation_type" colspan= "2" />
<group colspan= "2" attrs= "{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}" >
<field name= "validation_minimum_no" string= "Between" />
<field name= "validation_maximum_no" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('validation_type','!=','must_be_decimal_number')]}" >
<field name= "validation_minimum_float" string= "Between" />
<field name= "validation_maximum_float" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('validation_type','!=','must_be_date')]}" >
<field name= "validation_minimum_date" string= "Between" />
<field name= "validation_maximum_date" string= "and" />
</group>
</group>
<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')]}" >
<label string= "When the comment is an invalid format, display this error message" colspan= "4" />
<field name= "validation_valid_err_msg" nolabel= "1" colspan= "4" />
</group>
</group>
<newline />
<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')]}" >
<separator string= "Required Answer" colspan= "4" />
<newline />
<field name= "is_require_answer" />
<group col= "6" colspan= "4" attrs= "{'invisible':[('is_require_answer','=',False)]}" >
<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')]}" >
<field name= "required_type" />
<group colspan= "2" attrs= "{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}" >
<field name= "req_ans" />
</group>
<group colspan= "4" attrs= "{'invisible':[('required_type','!=','a range')]}" >
<field name= "minimum_req_ans" />
<field name= "maximum_req_ans" />
</group>
</group>
<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)]}" >
<label string= "When the question is not answered, display this error message:" />
<field name= "req_error_msg" colspan= "4" nolabel= "1" />
</group>
<group colspan= "4" attrs= "{'invisible':[('type','!=','numerical_textboxes')]}" >
<group colspan= "2" >
<field name= "numeric_required_sum" />
</group>
<newline />
<label string= "When the choices do not add up correctly, display this error message" />
<field name= "numeric_required_sum_err_msg" colspan= "4" nolabel= "1" />
</group>
<group colspan= "4" attrs= "{'invisible':[('type','!=','rating_scale')]}" >
<field name= "rating_allow_one_column_require" />
</group>
</group>
</group>
<newline />
<group attrs= "{'invisible':[('type','!=','descriptive_text')]}" >
<separator string= "Descriptive Text" colspan= "4" />
<field name= "descriptive_text" colspan= "4" nolabel= "1" />
</group>
</page>
</notebook>
2010-06-21 13:02:43 +00:00
</group>
2010-01-20 14:28:28 +00:00
</form>
<tree string= "Survey Question" >
<field name= "sequence" string= "Seq" />
<field name= "question" colspan= "4" select= "1" />
<field name= "answer_choice_ids" />
</tree>
</field>
</form>
</field>
</page>
<page string= "Other" >
2010-04-16 09:16:25 +00:00
<group colspan= "6" col= '4' >
2010-08-27 08:41:03 +00:00
<field name= "max_response_limit"
2010-04-16 09:16:25 +00:00
attrs="{'readonly':[('state','in',('open','close'))]}"/>
2010-04-18 15:32:44 +00:00
<field name= "response_user"
2010-04-16 09:16:25 +00:00
attrs="{'readonly':[('state','in',('open','close'))]}"/>
<field name= "type" />
<field name= "send_response" />
</group>
2010-01-20 14:28:28 +00:00
<separator colspan= "4" string= "Survey Details" />
<field name= "note" colspan= "4" nolabel= "1" />
</page>
2010-10-15 07:02:30 +00:00
<page string= "Invited User" >
<field name= "invited_user_ids" nolabel= "1" readonly= "1" />
</page>
2010-01-20 14:28:28 +00:00
<page string= "History" >
<field name= "date_open" select= "1" />
2010-04-18 15:32:44 +00:00
<field name= "date_close" />
2010-01-20 14:28:28 +00:00
<field name= "tot_start_survey" select= "1" />
<field name= "tot_comp_survey" select= "1" />
<field name= "history" colspan= "4" nolabel= "1" >
<tree string= "History" >
<field name= "date" />
[IMP]:survey,crm_hr,hr_evaluation.(Ref-YSA,APA)
-Rename Defination into Definition.
-When you click on test, answer or edit survey, remove the first screen with the selection box to select the survey.
-Add survey Types in demo data: Human Resources, Customer Feeback, Supplier Selection.
-In search view of surveys, remove the vertical separator between draft and open buttons, for type field set widget=selection.
-The button for responsible=my in the search view must be default="1".
-change demo data so that some surveys belongs to admin and some to demo user.
-The browse Response report must be renamed into "Print Answers".
-Browse the answer in the screen instead of printing a PDF.
-In the history one2many, first put the date and then the user.
-I started a survey but did not finished it. so that's normal but I was not able to restart the survey (it says I already answered).
-Removed the "Que: " prefix in each report.
bzr revid: apa@tinyerp.com-20100223093223-vwhgkn8kmdo8e6mo
2010-02-23 09:32:23 +00:00
<field name= "user_id" />
2010-01-20 14:28:28 +00:00
</tree>
<form string= "History" >
<field name= "date" />
[IMP]:survey,crm_hr,hr_evaluation.(Ref-YSA,APA)
-Rename Defination into Definition.
-When you click on test, answer or edit survey, remove the first screen with the selection box to select the survey.
-Add survey Types in demo data: Human Resources, Customer Feeback, Supplier Selection.
-In search view of surveys, remove the vertical separator between draft and open buttons, for type field set widget=selection.
-The button for responsible=my in the search view must be default="1".
-change demo data so that some surveys belongs to admin and some to demo user.
-The browse Response report must be renamed into "Print Answers".
-Browse the answer in the screen instead of printing a PDF.
-In the history one2many, first put the date and then the user.
-I started a survey but did not finished it. so that's normal but I was not able to restart the survey (it says I already answered).
-Removed the "Que: " prefix in each report.
bzr revid: apa@tinyerp.com-20100223093223-vwhgkn8kmdo8e6mo
2010-02-23 09:32:23 +00:00
<field name= "user_id" />
2010-01-20 14:28:28 +00:00
</form>
</field>
</page>
</notebook>
2012-04-26 09:42:17 +00:00
</sheet>
2010-01-20 14:28:28 +00:00
</form>
</field>
</record>
<record model = "ir.ui.view" id= "survey_tree" >
<field name= "name" > survey_tree</field>
<field name= "model" > survey</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2011-09-11 13:50:25 +00:00
<tree colors= "gray:state == 'close'" string= "Survey" >
2010-01-20 14:28:28 +00:00
<field name= "title" select= "1" />
2010-01-27 13:55:23 +00:00
<field name= "type" select= "1" />
2010-04-18 15:32:44 +00:00
<field name= "responsible_id" />
2010-06-21 13:02:43 +00:00
<field name= "date_open" select= "1" string= "Open Date" />
2010-04-18 15:32:44 +00:00
<field name= "tot_start_survey" string= "Started" />
<field name= "tot_comp_survey" string= "Completed" />
2010-01-20 14:28:28 +00:00
<field name= "state" select= "1" />
2010-04-16 09:16:25 +00:00
<button name= "%(action_view_survey_question_message)d" states= "open,draft,close,cancel"
string="Test Survey" type="action" icon="gtk-new"
context="{'active':True,'survey_id': active_id}"/>
<button name= "%(action_view_survey_question_message)d" states= "open,draft,close,cancel"
2010-02-23 12:11:54 +00:00
string="Answer Survey" type="action" icon="gtk-execute" context="{'survey_id': active_id}" attrs="{'invisible':[('state','!=','open')]}"/>
2010-04-16 09:16:25 +00:00
<button name= "%(action_view_survey_question_message)d" states= "open,draft,close,cancel"
2010-02-23 12:11:54 +00:00
string="Edit Survey" type="action" icon="gtk-edit" context="{'active':True,'edit' : True,'survey_id': active_id}"/>
2010-04-16 09:16:25 +00:00
<button name= "action_print_survey" states= "open,draft,close,cancel"
string="Print Answer" type="object" icon="gtk-print"/>
2010-01-20 14:28:28 +00:00
</tree>
</field>
</record>
2010-01-27 13:55:23 +00:00
<record id= "survey_search" model= "ir.ui.view" >
<field name= "name" > survey_search</field>
<field name= "model" > survey</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Survey" >
2011-03-15 14:08:59 +00:00
<group >
2011-09-20 10:24:22 +00:00
<filter icon= "terp-document-new" string= "New" domain= "[('state','=', 'draft')]" help= "All New Survey" />
2011-09-20 10:35:43 +00:00
<filter icon= "terp-camera_test" string= "Open" domain= "[('state','=','open')]" help= "All Open Survey" />
2010-01-27 13:55:23 +00:00
<separator orientation= "vertical" />
2011-03-15 12:41:11 +00:00
<field name= "title" />
<field name= "type" widget= "selection" />
<field name= "responsible_id" >
2010-09-28 13:16:15 +00:00
<filter string= "MY" icon= "terp-personal" domain= "[('responsible_id','=',uid)]" help= "My Survey(s)" />
2010-01-27 13:55:23 +00:00
</field>
</group>
2010-06-21 13:02:43 +00:00
<newline />
2011-03-15 14:08:59 +00:00
<group expand= "0" string= "Group By..." >
2010-12-30 10:18:57 +00:00
<filter string= "Responsible" icon= "terp-personal" domain= "[]" context= "{'group_by':'responsible_id'}" />
2010-08-27 08:41:03 +00:00
<separator orientation= "vertical" />
2010-12-30 10:18:57 +00:00
<filter string= "Type" icon= "terp-stock_symbol-selection" domain= "[]" context= "{'group_by':'type'}" />
2012-05-04 11:57:48 +00:00
<filter string= "Status" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2010-06-21 13:02:43 +00:00
</group>
2010-01-27 13:55:23 +00:00
</search>
</field>
</record>
2010-01-20 14:28:28 +00:00
<record model= "ir.actions.act_window" id= "action_survey_form1" >
2010-01-27 13:55:23 +00:00
<field name= "name" > Surveys</field>
2010-01-20 14:28:28 +00:00
<field name= "res_model" > survey</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "view_id" ref= "survey_tree" > </field>
2010-01-27 13:55:23 +00:00
<field name= "search_view_id" ref= "survey_search" />
2010-12-30 10:18:57 +00:00
<field name= "help" > You can create survey for different purposes: recruitment interviews, employee's periodical evaluations, marketing campaigns, etc. A survey is made of pages containing questions of several types: text, multiple choices, etc. You can edit survey manually or click on the 'Edit Survey' for a WYSIWYG interface.</field>
2010-01-20 14:28:28 +00:00
</record>
<menuitem name= "Surveys" id= "menu_survey_form"
2010-03-04 09:16:44 +00:00
action="action_survey_form1" parent="menu_define_survey"
2010-10-06 09:28:07 +00:00
groups="base.group_tool_manager"/>
2010-01-20 14:28:28 +00:00
<!--
Survey Pages
-->
<record model= "ir.ui.view" id= "survey_page_form" >
<field name= "name" > survey_page_form</field>
<field name= "model" > survey.page</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Survey Page" >
<field name= "title" colspan= "4" select= "1" />
<field name= "survey_id" select= "1" />
<field name= "sequence" />
<separator string= "Description" colspan= "4" />
<field name= "note" colspan= "4" nolabel= "1" />
2012-01-12 05:35:24 +00:00
<field name= "question_ids" colspan= "4" nolabel= "1" >
2010-01-20 14:28:28 +00:00
<form string= "Survey Question" >
<field name= "question" colspan= "4" select= "1" />
<field name= "sequence" />
2010-04-18 15:32:44 +00:00
<field name= "tot_resp" />
2010-01-20 14:28:28 +00:00
<field name= "type" on_change= "on_change_type(type)" />
2010-04-16 09:16:25 +00:00
<field name= "in_visible_rating_weight" invisible= "1" />
<field name= "in_visible_menu_choice" invisible= "1" />
<field name= "in_visible_answer_type" invisible= "1" />
2010-02-04 10:20:01 +00:00
<notebook colspan= "4" >
2010-04-16 09:16:25 +00:00
<page string= "Options" >
<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')]}" >
<separator string= "Answer" colspan= "4" />
<group colspan= "4" attrs= "{'invisible':[('type','=','table')]}" >
2012-01-12 05:35:24 +00:00
<field name= "answer_choice_ids" nolabel= "1" colspan= "4" context= "{'in_visible_answer_type': in_visible_answer_type}" />
2010-04-16 09:16:25 +00:00
</group>
<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')]}" >
2012-01-06 11:09:14 +00:00
<field name= "column_heading_ids" colspan= "4" nolabel= "1" context= "{'in_visible_rating_weight':in_visible_rating_weight,'in_visible_menu_choice':in_visible_menu_choice}" />
2010-04-16 09:16:25 +00:00
<group colspan= "4" attrs= "{'invisible':[('type','!=','table')]}" >
<field name= "no_of_rows" />
</group>
</group>
</group>
<newline />
<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')]}" >
<separator string= "Comment Field" colspan= "4" />
<group colspan= "4" >
<field name= "is_comment_require" />
</group>
<group attrs= "{'invisible':[('is_comment_require','=',False)]}" >
<group col= "4" colspan= "4" >
<field name= "comment_field_type" colspan= "1" />
<group colspan= "2" attrs= "{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}" >
<field colspan= "2" name= "comment_label" />
</group>
</group>
<group col= "6" colspan= "4" attrs= "{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}" >
<field name= "comment_valid_type" colspan= "2" />
<group colspan= "2" attrs= "{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}" >
<field name= "comment_minimum_no" string= "Between" />
<field name= "comment_maximum_no" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}" >
<field name= "comment_minimum_float" string= "Between" />
<field name= "comment_maximum_float" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('comment_valid_type','!=','must_be_date')]}" >
<field name= "comment_minimum_date" string= "Between" />
<field name= "comment_maximum_date" string= "and" />
</group>
<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')]}" >
<label string= "When the comment is an invalid format, display this error message" colspan= "4" />
<field name= "comment_valid_err_msg" nolabel= "1" colspan= "4" />
</group>
</group>
</group>
</group>
<newline />
<group attrs= "{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}" >
<field name= "comment_column" />
<group colspan= "2" attrs= "{'invisible':[('comment_column','!=',True)]}" >
<field name= "column_name" colspan= "2" />
</group>
</group>
<newline />
<group attrs= "{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}" >
<separator string= "Validation" colspan= "4" />
<group colspan= "4" >
<field name= "is_validation_require" />
</group>
<group col= "6" colspan= "4" attrs= "{'invisible':[('is_validation_require','=',False)]}" >
<field name= "validation_type" colspan= "2" />
<group colspan= "2" attrs= "{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}" >
<field name= "validation_minimum_no" string= "Between" />
<field name= "validation_maximum_no" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('validation_type','!=','must_be_decimal_number')]}" >
<field name= "validation_minimum_float" string= "Between" />
<field name= "validation_maximum_float" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('validation_type','!=','must_be_date')]}" >
<field name= "validation_minimum_date" string= "Between" />
<field name= "validation_maximum_date" string= "and" />
</group>
</group>
<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')]}" >
<label string= "When the comment is an invalid format, display this error message" colspan= "4" />
<field name= "validation_valid_err_msg" nolabel= "1" colspan= "4" />
</group>
</group>
<newline />
<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')]}" >
<separator string= "Required Answer" colspan= "4" />
<newline />
<field name= "is_require_answer" />
<group col= "6" colspan= "4" attrs= "{'invisible':[('is_require_answer','=',False)]}" >
<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')]}" >
<field name= "required_type" />
<group colspan= "2" attrs= "{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}" >
<field name= "req_ans" />
</group>
<group colspan= "4" attrs= "{'invisible':[('required_type','!=','a range')]}" >
<field name= "minimum_req_ans" />
<field name= "maximum_req_ans" />
</group>
</group>
<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)]}" >
<label string= "When the question is not answered, display this error message:" />
<field name= "req_error_msg" colspan= "4" nolabel= "1" />
</group>
<group colspan= "4" attrs= "{'invisible':[('type','!=','numerical_textboxes')]}" >
<group colspan= "2" >
<field name= "numeric_required_sum" />
</group>
<newline />
<label string= "When the choices do not add up correctly, display this error message" />
<field name= "numeric_required_sum_err_msg" colspan= "4" nolabel= "1" />
</group>
<group colspan= "4" attrs= "{'invisible':[('type','!=','rating_scale')]}" >
<field name= "rating_allow_one_column_require" />
</group>
</group>
</group>
<newline />
<group attrs= "{'invisible':[('type','!=','descriptive_text')]}" >
<separator string= "Descriptive Text" colspan= "4" />
<field name= "descriptive_text" colspan= "4" nolabel= "1" />
</group>
</page>
</notebook>
2010-02-04 10:20:01 +00:00
2010-01-20 14:28:28 +00:00
</form>
<tree string= "Survey Question" >
<field name= "sequence" string= "Seq" />
<field name= "question" colspan= "4" select= "1" />
<field name= "answer_choice_ids" />
</tree>
</field>
</form>
</field>
</record>
<record model= "ir.ui.view" id= "survey_page_tree" >
<field name= "name" > survey_page_tree</field>
<field name= "model" > survey.page</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Survey Page" >
<field name= "sequence" string= "Seq" />
<field name= "title" />
2010-01-27 13:55:23 +00:00
<field name= "survey_id" />
2010-01-20 14:28:28 +00:00
<field name= "question_ids" string= "#Questions" />
</tree>
</field>
</record>
2010-06-21 13:02:43 +00:00
<record id= "view_survey_page_filter" model= "ir.ui.view" >
<field name= "name" > survey.page.list.select</field>
<field name= "model" > survey.page</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Survey Page" >
<field name= "title" />
<field name= "survey_id" />
<newline />
2011-03-15 14:08:59 +00:00
<group expand= "0" string= "Group By..." >
2010-06-21 13:02:43 +00:00
<filter string= "Survey" icon= "terp-stock_align_left_24" domain= "[]" context= "{'group_by':'survey_id'}" />
</group>
</search>
</field>
</record>
2010-01-20 14:28:28 +00:00
<record model= "ir.actions.act_window" id= "action_survey_page_form" >
2010-01-27 13:55:23 +00:00
<field name= "name" > Survey Pages</field>
2010-01-20 14:28:28 +00:00
<field name= "res_model" > survey.page</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "view_id" ref= "survey_page_tree" > </field>
</record>
2010-08-25 13:20:23 +00:00
<menuitem name= "Survey Pages" id= "menu_survey_page_form1"
2010-03-04 09:16:44 +00:00
action="action_survey_page_form" parent='menu_define_survey'
2010-10-06 09:28:07 +00:00
groups="base.group_tool_manager"/>
2010-01-20 14:28:28 +00:00
<record model= "ir.ui.view" id= "survey_page_wizard_test1" >
<field name= "name" > survey_page_wizard_test</field>
<field name= "model" > survey.page</field>
<field name= "type" > form</field>
2011-03-30 06:14:07 +00:00
<field name= "priority" > 20</field>
2010-01-20 14:28:28 +00:00
<field name= "arch" type= "xml" >
<form string= "Survey Pages" >
<field name= "title" colspan= "4" select= "1" />
<field name= "sequence" />
<separator string= "Description" colspan= "4" />
<field name= "note" colspan= "4" nolabel= "1" />
2010-04-16 09:16:25 +00:00
<group colspan= "4" >
<label string= "" colspan= "3" />
2010-05-11 09:00:24 +00:00
<button name= "survey_save" string= "Ok" type= "object" icon= "gtk-go-forward" />
2010-04-16 09:16:25 +00:00
</group>
</form>
</field>
</record>
2010-01-20 14:28:28 +00:00
<!--
Survey Question
-->
<record model= "ir.ui.view" id= "survey_question_form" >
<field name= "name" > survey_question_form</field>
<field name= "model" > survey.question</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Survey Question" >
2010-03-26 09:14:34 +00:00
<field name= "question" colspan= "4" />
<field name= "page_id" />
2010-01-20 14:28:28 +00:00
<field name= "sequence" />
2010-03-26 09:14:34 +00:00
<field name= "tot_resp" />
2010-01-20 14:28:28 +00:00
<field name= "type" on_change= "on_change_type(type)" />
<field name= "in_visible_rating_weight" invisible= "1" />
<field name= "in_visible_menu_choice" invisible= "1" />
2010-02-04 10:20:01 +00:00
<field name= "in_visible_answer_type" invisible= "1" />
2010-01-20 14:28:28 +00:00
<notebook colspan= "4" >
2010-01-27 13:55:23 +00:00
<page string= "Options" >
2010-04-16 09:16:25 +00:00
<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')]}" >
<separator string= "Answer" colspan= "4" />
<group colspan= "4" attrs= "{'invisible':[('type','=','table')]}" >
2012-01-12 05:35:24 +00:00
<field name= "answer_choice_ids" nolabel= "1" colspan= "4" context= "{'in_visible_answer_type': in_visible_answer_type}" />
2010-04-16 09:16:25 +00:00
</group>
<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')]}" >
2012-01-06 11:09:14 +00:00
<field name= "column_heading_ids" colspan= "4" nolabel= "1" context= "{'in_visible_rating_weight':in_visible_rating_weight,'in_visible_menu_choice':in_visible_menu_choice}" />
2010-04-16 09:16:25 +00:00
<group colspan= "4" attrs= "{'invisible':[('type','!=','table')]}" >
<field name= "no_of_rows" />
</group>
</group>
</group>
<newline />
<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')]}" >
<separator string= "Comment Field" colspan= "4" />
<group colspan= "4" >
<field name= "is_comment_require" />
</group>
<group attrs= "{'invisible':[('is_comment_require','=',False)]}" >
<group col= "4" colspan= "4" >
<field name= "comment_field_type" colspan= "1" />
<group colspan= "2" attrs= "{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}" >
<field colspan= "2" name= "comment_label" />
</group>
</group>
<group col= "6" colspan= "4" attrs= "{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}" >
<field name= "comment_valid_type" colspan= "2" />
<group colspan= "2" attrs= "{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}" >
<field name= "comment_minimum_no" string= "Between" />
<field name= "comment_maximum_no" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}" >
<field name= "comment_minimum_float" string= "Between" />
<field name= "comment_maximum_float" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('comment_valid_type','!=','must_be_date')]}" >
<field name= "comment_minimum_date" string= "Between" />
<field name= "comment_maximum_date" string= "and" />
</group>
<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')]}" >
<label string= "When the comment is an invalid format, display this error message" colspan= "4" />
<field name= "comment_valid_err_msg" nolabel= "1" colspan= "4" />
</group>
</group>
</group>
</group>
<newline />
2010-02-05 09:48:02 +00:00
<group attrs= "{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}" >
2010-04-16 09:16:25 +00:00
<field name= "comment_column" />
<group colspan= "2" attrs= "{'invisible':[('comment_column','!=',True)]}" >
<field name= "column_name" colspan= "2" />
</group>
</group>
<newline />
<group attrs= "{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}" >
<separator string= "Validation" colspan= "4" />
<group colspan= "4" >
<field name= "is_validation_require" />
</group>
<group col= "6" colspan= "4" attrs= "{'invisible':[('is_validation_require','=',False)]}" >
<field name= "validation_type" colspan= "2" />
<group colspan= "2" attrs= "{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}" >
<field name= "validation_minimum_no" string= "Between" />
<field name= "validation_maximum_no" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('validation_type','!=','must_be_decimal_number')]}" >
<field name= "validation_minimum_float" string= "Between" />
<field name= "validation_maximum_float" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('validation_type','!=','must_be_date')]}" >
<field name= "validation_minimum_date" string= "Between" />
<field name= "validation_maximum_date" string= "and" />
</group>
</group>
<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')]}" >
<label string= "When the comment is an invalid format, display this error message" colspan= "4" />
<field name= "validation_valid_err_msg" nolabel= "1" colspan= "4" />
</group>
</group>
<newline />
<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')]}" >
<separator string= "Required Answer" colspan= "4" />
<newline />
2010-01-20 14:28:28 +00:00
<field name= "is_require_answer" />
2010-04-16 09:16:25 +00:00
<group col= "6" colspan= "4" attrs= "{'invisible':[('is_require_answer','=',False)]}" >
<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')]}" >
<field name= "required_type" />
<group colspan= "2" attrs= "{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}" >
<field name= "req_ans" />
</group>
<group colspan= "4" attrs= "{'invisible':[('required_type','!=','a range')]}" >
<field name= "minimum_req_ans" />
<field name= "maximum_req_ans" />
</group>
</group>
<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)]}" >
<label string= "When the question is not answered, display this error message:" />
<field name= "req_error_msg" colspan= "4" nolabel= "1" />
</group>
<group colspan= "4" attrs= "{'invisible':[('type','!=','numerical_textboxes')]}" >
<group colspan= "2" >
<field name= "numeric_required_sum" />
</group>
<newline />
<label string= "When the choices do not add up correctly, display this error message" />
<field name= "numeric_required_sum_err_msg" colspan= "4" nolabel= "1" />
</group>
<group colspan= "4" attrs= "{'invisible':[('type','!=','rating_scale')]}" >
<field name= "rating_allow_one_column_require" />
</group>
</group>
</group>
<newline />
<group attrs= "{'invisible':[('type','!=','descriptive_text')]}" >
<separator string= "Descriptive Text" colspan= "4" />
<field name= "descriptive_text" colspan= "4" nolabel= "1" />
</group>
2010-01-20 14:28:28 +00:00
</page>
</notebook>
</form>
</field>
</record>
<record model= "ir.ui.view" id= "survey_question_tree" >
<field name= "name" > survey_question_tree</field>
<field name= "model" > survey.question</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Survey Question" >
2010-04-16 09:16:25 +00:00
<field name= "sequence" string= "Seq" />
2010-03-26 09:14:34 +00:00
<field name= "question" />
<field name= "page_id" />
<field name= "survey" />
<field name= "type" />
2010-01-20 14:28:28 +00:00
</tree>
</field>
</record>
2010-03-26 09:14:34 +00:00
<record id= "survey_question_search" model= "ir.ui.view" >
<field name= "name" > survey_question_search</field>
<field name= "model" > survey.question</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Question" >
<field name= "question" />
<field name= "page_id" />
<field name= "survey" widget= "selection" />
<field name= "type" />
2010-08-27 08:41:03 +00:00
<newline />
2011-03-15 14:08:59 +00:00
<group expand= "0" string= "Group By..." >
2010-08-27 08:41:03 +00:00
<filter string= "Page" icon= "terp-stock_align_left_24" domain= "[]" context= "{'group_by':'page_id'}" />
</group>
2010-03-26 09:14:34 +00:00
</search>
</field>
</record>
2010-01-27 13:55:23 +00:00
<record model= "ir.actions.act_window" id= "action_survey_question_form" >
<field name= "name" > Survey Questions</field>
<field name= "res_model" > survey.question</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "view_id" ref= "survey_question_tree" > </field>
2010-03-26 09:14:34 +00:00
<field name= "search_view_id" ref= "survey_question_search" />
2010-01-27 13:55:23 +00:00
</record>
2010-01-20 14:28:28 +00:00
<record model= "ir.ui.view" id= "survey_question_wizard_test" >
<field name= "name" > survey_question_wizard_test</field>
<field name= "model" > survey.question</field>
2011-05-09 06:23:10 +00:00
<field name= "priority" > 20</field>
2010-01-20 14:28:28 +00:00
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Survey Question" >
2010-03-26 09:14:34 +00:00
<field name= "question" colspan= "4" />
2010-01-20 14:28:28 +00:00
<field name= "sequence" />
2010-03-26 09:14:34 +00:00
<field name= "tot_resp" />
2010-01-20 14:28:28 +00:00
<field name= "type" on_change= "on_change_type(type)" />
<field name= "in_visible_rating_weight" invisible= "1" />
<field name= "in_visible_menu_choice" invisible= "1" />
2010-02-04 10:20:01 +00:00
<field name= "in_visible_answer_type" invisible= "1" />
2010-01-20 14:28:28 +00:00
<notebook colspan= "4" >
2010-01-27 13:55:23 +00:00
<page string= "Options" >
2010-04-16 09:16:25 +00:00
<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')]}" >
<separator string= "Answer" colspan= "4" />
<group colspan= "4" attrs= "{'invisible':[('type','=','table')]}" >
2012-01-12 05:35:24 +00:00
<field name= "answer_choice_ids" nolabel= "1" colspan= "4" context= "{'in_visible_answer_type': in_visible_answer_type}" />
2010-04-16 09:16:25 +00:00
</group>
<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')]}" >
2012-01-06 11:09:14 +00:00
<field name= "column_heading_ids" colspan= "4" nolabel= "1" context= "{'in_visible_rating_weight':in_visible_rating_weight,'in_visible_menu_choice':in_visible_menu_choice}" />
2010-04-16 09:16:25 +00:00
<group colspan= "4" attrs= "{'invisible':[('type','!=','table')]}" >
<field name= "no_of_rows" />
</group>
</group>
</group>
<newline />
<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')]}" >
<separator string= "Comment Field" colspan= "4" />
<group colspan= "4" >
<field name= "is_comment_require" />
</group>
<group attrs= "{'invisible':[('is_comment_require','=',False)]}" >
<group col= "4" colspan= "4" >
<field name= "comment_field_type" colspan= "1" />
<group colspan= "2" attrs= "{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}" >
<field colspan= "2" name= "comment_label" />
</group>
</group>
<group col= "6" colspan= "4" attrs= "{'invisible':[('comment_field_type','!=','char'),('comment_field_type','!=','text')]}" >
<field name= "comment_valid_type" colspan= "2" />
<group colspan= "2" attrs= "{'invisible':[('comment_valid_type','!=','must_be_specific_length'), ('comment_valid_type','!=','must_be_whole_number')]}" >
<field name= "comment_minimum_no" string= "Between" />
<field name= "comment_maximum_no" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('comment_valid_type','!=','must_be_decimal_number')]}" >
<field name= "comment_minimum_float" string= "Between" />
<field name= "comment_maximum_float" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('comment_valid_type','!=','must_be_date')]}" >
<field name= "comment_minimum_date" string= "Between" />
<field name= "comment_maximum_date" string= "and" />
</group>
<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')]}" >
<label string= "When the comment is an invalid format, display this error message" colspan= "4" />
<field name= "comment_valid_err_msg" nolabel= "1" colspan= "4" />
</group>
</group>
</group>
</group>
<newline />
2010-02-05 09:48:02 +00:00
<group attrs= "{'invisible':[('type','!=','matrix_of_choices_only_one_ans'),('type','!=','rating_scale')]}" >
2010-04-16 09:16:25 +00:00
<field name= "comment_column" />
<group colspan= "2" attrs= "{'invisible':[('comment_column','!=',True)]}" >
<field name= "column_name" colspan= "2" />
</group>
</group>
<newline />
<group attrs= "{'invisible':[('type','!=','single_textbox'), ('type','!=','multiple_textboxes')]}" >
<separator string= "Validation" colspan= "4" />
<group colspan= "4" >
<field name= "is_validation_require" />
</group>
<group col= "6" colspan= "4" attrs= "{'invisible':[('is_validation_require','=',False)]}" >
<field name= "validation_type" colspan= "2" />
<group colspan= "2" attrs= "{'invisible':[('validation_type','!=','must_be_specific_length'), ('validation_type','!=','must_be_whole_number')]}" >
<field name= "validation_minimum_no" string= "Between" />
<field name= "validation_maximum_no" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('validation_type','!=','must_be_decimal_number')]}" >
<field name= "validation_minimum_float" string= "Between" />
<field name= "validation_maximum_float" string= "and" />
</group>
<group colspan= "4" attrs= "{'invisible':[('validation_type','!=','must_be_date')]}" >
<field name= "validation_minimum_date" string= "Between" />
<field name= "validation_maximum_date" string= "and" />
</group>
</group>
<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')]}" >
<label string= "When the comment is an invalid format, display this error message" colspan= "4" />
<field name= "validation_valid_err_msg" nolabel= "1" colspan= "4" />
</group>
</group>
<newline />
<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')]}" >
<separator string= "Required Answer" colspan= "4" />
<newline />
2010-01-20 14:28:28 +00:00
<field name= "is_require_answer" />
2010-04-16 09:16:25 +00:00
<group col= "6" colspan= "4" attrs= "{'invisible':[('is_require_answer','=',False)]}" >
<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')]}" >
<field name= "required_type" />
<group colspan= "2" attrs= "{'invisible':[('required_type','!=','at least'),('required_type','!=','at most'),('required_type','!=','exactly')]}" >
<field name= "req_ans" />
</group>
<group colspan= "4" attrs= "{'invisible':[('required_type','!=','a range')]}" >
<field name= "minimum_req_ans" />
<field name= "maximum_req_ans" />
</group>
</group>
<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)]}" >
<label string= "When the question is not answered, display this error message:" />
<field name= "req_error_msg" colspan= "4" nolabel= "1" />
</group>
<group colspan= "4" attrs= "{'invisible':[('type','!=','numerical_textboxes')]}" >
<group colspan= "2" >
<field name= "numeric_required_sum" />
</group>
<newline />
<label string= "When the choices do not add up correctly, display this error message" />
<field name= "numeric_required_sum_err_msg" colspan= "4" nolabel= "1" />
</group>
<group colspan= "4" attrs= "{'invisible':[('type','!=','rating_scale')]}" >
<field name= "rating_allow_one_column_require" />
</group>
</group>
</group>
<newline />
<group attrs= "{'invisible':[('type','!=','descriptive_text')]}" >
<separator string= "Descriptive Text" colspan= "4" />
<field name= "descriptive_text" colspan= "4" nolabel= "1" />
</group>
2010-01-20 14:28:28 +00:00
</page>
</notebook>
2010-04-16 09:16:25 +00:00
<group colspan= "4" >
<label string= "" colspan= "3" />
2010-05-11 09:00:24 +00:00
<button name= "survey_save" string= "Ok" type= "object" icon= "gtk-go-forward" />
2010-04-16 09:16:25 +00:00
</group>
2010-01-20 14:28:28 +00:00
</form>
</field>
</record>
<!--
Survey Answer
-->
<record model = "ir.ui.view" id= "survey_answer_form" >
<field name= "name" > survey_answer_form</field>
<field name= "model" > survey.answer</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Survey Answer" >
<field name= "answer" colspan= "4" select= "1" />
<field name= "sequence" />
2010-02-04 10:20:01 +00:00
<field name= "in_visible_answer_type" invisible= "1" />
2010-04-16 09:16:25 +00:00
<group colspan= "4" attrs= "{'invisible':[('in_visible_answer_type','=',True)]}" >
2010-02-05 09:48:02 +00:00
<field name= "type" colspan= "2" />
<group colspan= "4" attrs= "{'invisible':[('type','!=','selection')]}" >
2010-04-16 09:16:25 +00:00
<separator string= "Menu Choices (each choice on separate by lines)" colspan= "4" />
<field name= "menu_choice" colspan= "4" nolabel= "1" />
2010-02-05 09:48:02 +00:00
</group>
2010-02-04 10:20:01 +00:00
</group>
2010-01-20 14:28:28 +00:00
</form>
</field>
</record>
<record model= "ir.ui.view" id= "survey_answer_tree" >
<field name= "name" > survey_answer_tree</field>
<field name= "model" > survey.answer</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-08-30 09:14:48 +00:00
<tree editable= "bottom" string= "Survey Answer" >
2010-01-20 14:28:28 +00:00
<field name= "sequence" string= "Seq" />
<field name= "answer" select= "1" />
2010-08-31 07:26:33 +00:00
<field name= "type" />
2010-01-20 14:28:28 +00:00
</tree>
</field>
</record>
<!--
Survey Response Line
-->
<record model = "ir.ui.view" id= "survey_response_line_form" >
<field name= "name" > survey_response_line_form</field>
<field name= "model" > survey.response.line</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2010-03-04 09:16:44 +00:00
<form string= "Survey Answer" >
2010-04-16 09:16:25 +00:00
<field name= "question_id" />
2010-01-20 14:28:28 +00:00
<field name= "date_create" select= "1" />
<notebook colspan= "4" >
2010-03-04 09:16:44 +00:00
<page string= "Answer" >
2010-01-20 14:28:28 +00:00
<field name= "response_answer_ids" colspan= "4" nolabel= "1" />
<group col= "5" colspan= "4" >
<field name= "state" />
</group>
</page>
<page string= "Single Textboxes" >
<field name= "single_text" colspan= "4" />
</page>
<page string= "Comment" >
<separator string= "Description" colspan= "4" />
<field name= "comment" nolabel= "1" colspan= "4" />
</page>
<page string= "Table Answer" >
<field name= "response_table_ids" colspan= "4" nolabel= "1" >
<form string= "Table" >
2010-04-16 09:16:25 +00:00
<field name= "column_id" />
<field name= "name" />
<field name= "value" />
2010-01-20 14:28:28 +00:00
</form>
<tree string= "Table" >
2010-04-16 09:16:25 +00:00
<field name= "column_id" />
<field name= "name" />
<field name= "value" />
2010-01-20 14:28:28 +00:00
</tree>
</field>
</page>
</notebook>
</form>
</field>
</record>
<record model= "ir.ui.view" id= "survey_response_line_tree" >
<field name= "name" > survey_response_line_tree</field>
<field name= "model" > survey.response.line</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-03-04 09:16:44 +00:00
<tree string= "Survey Answer Line" >
2010-04-16 09:16:25 +00:00
<field name= "page_id" />
2010-01-20 14:28:28 +00:00
<field name= "question_id" />
<field name= "date_create" select= "1" />
<field name= "state" />
</tree>
</field>
</record>
<!--
Survey Response
-->
<record model= "ir.ui.view" id= "survey_response_form" >
<field name= "name" > survey_response_form</field>
<field name= "model" > survey.response</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2010-03-04 09:16:44 +00:00
<form string= "Survey Answer" >
2010-04-16 09:16:25 +00:00
<field name= "survey_id" select= "1" />
2010-01-20 14:28:28 +00:00
<field name= "date_create" select= "1" />
<field name= "user_id" select= "1" />
<field name= "response_type" select= "1" />
<field name= "question_ids" nolabel= "1" colspan= "4" />
2010-02-03 08:35:53 +00:00
<field name= "state" select= "1" />
2010-01-20 14:28:28 +00:00
</form>
</field>
</record>
<record model= "ir.ui.view" id= "survey_response_tree" >
<field name= "name" > survey_response_tree</field>
<field name= "model" > survey.response</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-03-04 09:16:44 +00:00
<tree string= "Survey Answer" >
2010-04-16 09:16:25 +00:00
<field name= "survey_id" select= "1" />
2010-01-20 14:28:28 +00:00
<field name= "date_create" select= "1" />
<field name= "user_id" select= "1" />
<field name= "response_type" select= "1" />
2010-02-03 08:35:53 +00:00
<field name= "state" select= "1" />
2010-01-20 14:28:28 +00:00
</tree>
</field>
</record>
<!--
Survey Response Answer
-->
<record model= "ir.ui.view" id= "survey_response_answer_form" >
<field name= "name" > survey_response_answer_form</field>
<field name= "model" > survey.response.answer</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2010-03-04 09:16:44 +00:00
<form string= "Survey Answer" >
2010-01-20 14:28:28 +00:00
<group colspan= "4" >
<field name= "answer_id" />
<field name= "answer" />
</group>
<field name= "value_choice" />
<label string= "(Use Only Question Type is matrix_of_drop_down_menus)" align= "0.0" />
2010-02-04 10:20:01 +00:00
<group colspan= "4" col= "4" >
2010-04-16 09:16:25 +00:00
<field name= "comment_field" />
<field name= "column_id" />
</group>
2010-01-20 14:28:28 +00:00
</form>
</field>
</record>
<record model= "ir.ui.view" id= "survey_response_answer_tree" >
<field name= "name" > survey_response_answer_tree</field>
<field name= "model" > survey.response.answer</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-03-04 09:16:44 +00:00
<tree editable= "top" string= "Survey Answer" >
2010-01-20 14:28:28 +00:00
<field name= "answer_id" />
<field name= "answer" />
<field name= "value_choice" />
2010-02-04 10:20:01 +00:00
<field name= "column_id" />
2010-01-20 14:28:28 +00:00
<field name= "comment_field" />
</tree>
</field>
</record>
<!--
Survey Question Column Heading
-->
<record model= "ir.ui.view" id= "survey_question_column_heading_form" >
<field name= "name" > survey_question_column_heading_form</field>
<field name= "model" > survey.question.column.heading</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Column Heading" >
<field name= "title" />
<field name= "in_visible_rating_weight" invisible= "1" />
<field name= "in_visible_menu_choice" invisible= "1" />
<group colspan= "4" attrs= "{'invisible':[('in_visible_rating_weight','!=',False)]}" >
<field name= "rating_weight" />
<label align= "0.0" string= "Use if question type is rating_scale" />
</group>
<group colspan= "4" attrs= "{'invisible':[('in_visible_menu_choice','!=',False)]}" >
<separator string= "Menu Choices (each choice on separate lines)" colspan= "4" />
<field name= "menu_choice" nolabel= "1" colspan= "4" />
</group>
</form>
</field>
</record>
<record model= "ir.ui.view" id= "survey_question_column_heading_tree" >
<field name= "name" > survey_question_column_heading_tree</field>
<field name= "model" > survey.question.column.heading</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-01-27 13:55:23 +00:00
<tree editable= "bottom" string= "Column Heading" >
2010-01-20 14:28:28 +00:00
<field name= "title" />
</tree>
</field>
</record>
<!--
Survey Request
-->
<record model= "ir.ui.view" id= "survey_request_form" >
<field name= "name" > survey_request_form</field>
<field name= "model" > survey.request</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2012-05-04 11:16:29 +00:00
<form layout= "manual" >
2012-06-04 12:11:39 +00:00
<header >
2012-05-22 09:14:45 +00:00
<button name= "survey_req_draft" string= "Set to Draft" states= "cancel,done" type= "object" />
<button name= "survey_req_waiting_answer" string= "Waiting Answer" states= "draft" type= "object" />
<button name= "survey_req_done" string= "Done" states= "waiting_answer" type= "object" />
<button name= "survey_req_cancel" string= "Cancel" states= "waiting_answer" type= "object" />
2012-06-04 10:50:56 +00:00
<field name= "state" widget= "statusbar" statusbar_visible= "draft,waiting_answer" />
2012-06-04 12:11:39 +00:00
</header>
2012-05-04 11:16:29 +00:00
<sheet string= "Survey Request" layout= "auto" >
<group class= "oe_form_header" >
2010-01-20 14:28:28 +00:00
<field name= "date_deadline" />
2010-03-05 12:21:31 +00:00
<field name= "survey_id" />
2010-01-21 07:38:43 +00:00
<field name= "user_id" on_change= "on_change_user(user_id)" />
2010-04-16 09:16:25 +00:00
<field name= "response" readonly= "1" />
2010-01-21 07:38:43 +00:00
</group>
2012-05-04 11:16:29 +00:00
</sheet>
2010-01-20 14:28:28 +00:00
</form>
</field>
</record>
<record model= "ir.ui.view" id= "survey_request_tree" >
<field name= "name" > survey_request_tree</field>
<field name= "model" > survey.request</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-09-29 06:05:49 +00:00
<tree string= "Evaluation Plan Phase" colors= "red:date_deadline<current_date" >
2010-01-20 14:28:28 +00:00
<field name= "date_deadline" />
2010-04-16 09:16:25 +00:00
<field name= "user_id" />
2010-03-05 12:21:31 +00:00
<field name= "survey_id" />
<field name= "response" />
2010-01-20 14:28:28 +00:00
<field name= "state" />
</tree>
</field>
</record>
2010-03-05 12:21:31 +00:00
<record id= "survey_request_search" model= "ir.ui.view" >
<field name= "name" > survey_request_search</field>
<field name= "model" > survey.request</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Survey" >
2011-03-15 14:08:59 +00:00
<group >
2010-08-27 08:41:03 +00:00
<filter icon= "terp-gtk-media-pause" string= "Waiting Answer" domain= "[('state','=','waiting_answer')]" />
<filter icon= "terp-emblem-important" string= "Late" domain= "[('date_deadline','<',current_date)]" />
2010-03-05 12:21:31 +00:00
<separator orientation= "vertical" />
2011-03-15 12:41:11 +00:00
<field name= "survey_id" widget= "selection" />
<field name= "email" />
<field name= "user_id" >
2010-06-03 09:27:55 +00:00
<filter string= "MY" icon= "terp-personal" domain= "[('user_id','=',uid)]" />
2010-03-05 12:21:31 +00:00
</field>
2010-08-27 08:41:03 +00:00
</group>
<newline />
2011-03-15 14:08:59 +00:00
<group expand= "0" string= "Group By..." >
2010-12-30 10:18:57 +00:00
<filter string= "User" icon= "terp-personal" domain= "[]" context= "{'group_by':'user_id'}" />
2010-08-27 08:41:03 +00:00
<separator orientation= "vertical" />
2010-12-30 10:18:57 +00:00
<filter string= "Survey" icon= "terp-stock_align_left_24" domain= "[]" context= "{'group_by':'survey_id'}" />
2010-08-27 08:41:03 +00:00
<separator orientation= "vertical" />
2012-05-04 11:57:48 +00:00
<filter string= "Status" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2010-08-27 08:41:03 +00:00
</group>
2010-03-05 12:21:31 +00:00
</search>
</field>
</record>
2010-03-04 09:16:44 +00:00
<record model= "ir.actions.act_window" id= "action_survey_request_tree" >
2010-09-29 06:07:54 +00:00
<field name= "name" > Survey Requests</field>
2010-03-04 09:16:44 +00:00
<field name= "res_model" > survey.request</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
2010-09-07 09:08:48 +00:00
<field name= "domain" > [('user_id','=',uid)]</field>
2010-03-04 09:16:44 +00:00
<field name= "view_id" ref= "survey_request_tree" > </field>
2010-03-05 12:21:31 +00:00
<field name= "search_view_id" ref= "survey_request_search" />
2010-03-04 09:16:44 +00:00
</record>
<menuitem name= "Survey Requests" id= "menu_survey_type_form1"
action="action_survey_request_tree" parent='menu_answer_surveys'
2010-10-06 09:28:07 +00:00
groups="base.group_tool_manager"/>
2010-03-04 09:16:44 +00:00
2010-01-27 13:55:23 +00:00
<!--
Survey Type
-->
<record model= "ir.ui.view" id= "survey_type_form" >
<field name= "name" > survey_type_form</field>
<field name= "model" > survey.type</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Survey Type" >
<field name= "name" select= "1" />
<field name= "code" select= "1" />
</form>
</field>
</record>
<record model= "ir.ui.view" id= "survey_type_tree" >
<field name= "name" > survey_type_tree</field>
<field name= "model" > survey.type</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Survey Type" >
<field name= "name" select= "1" />
<field name= "code" select= "1" />
</tree>
</field>
</record>
<record model= "ir.actions.act_window" id= "action_survey_type_form" >
<field name= "name" > Survey Type</field>
<field name= "res_model" > survey.type</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "view_id" ref= "survey_type_tree" > </field>
</record>
2012-02-28 06:37:05 +00:00
<act_window
2011-01-27 09:49:39 +00:00
context="{'search_default_survey_id': [active_id], 'default_survey_id': active_id}"
2010-01-20 14:28:28 +00:00
id="act_survey_pages"
2010-08-27 08:41:03 +00:00
name="Pages"
2010-01-20 14:28:28 +00:00
res_model="survey.page"
src_model="survey"/>
2012-02-28 06:37:05 +00:00
<act_window
2011-01-27 09:49:39 +00:00
context="{'search_default_survey': active_id, 'default_survey': active_id}"
2010-01-20 14:28:28 +00:00
id="act_survey_question"
2010-08-27 08:41:03 +00:00
name="Questions"
2010-01-20 14:28:28 +00:00
res_model="survey.question"
src_model="survey"/>
2012-02-28 06:37:05 +00:00
<act_window
2011-01-27 09:49:39 +00:00
context="{'search_default_page_id': active_id, 'default_page_id': active_id}"
2010-01-20 14:28:28 +00:00
id="act_survey_page_question"
2010-08-27 08:41:03 +00:00
name="Questions"
2010-01-20 14:28:28 +00:00
res_model="survey.question"
src_model="survey.page"/>
<act_window domain= "[('question_id', '=', active_id)]"
id="act_survey_answer"
2010-08-27 08:41:03 +00:00
name="Answers"
2010-01-20 14:28:28 +00:00
res_model="survey.answer"
src_model="survey.question"/>
2010-04-16 09:16:25 +00:00
<menuitem name= "Answer a Survey" id= "menu_run_survey_form" sequence= "2"
2011-03-08 12:59:11 +00:00
action="action_view_survey_name" parent="menu_answer_surveys" groups="base.group_tool_user,base.group_tool_manager,base.group_survey_user" icon="STOCK_INDEX"/>
2010-01-20 14:28:28 +00:00
</data>
</openerp>