6 string="Using a questionnaire"
7 model="crm_profiling.questionnaire"
8 name="open_questionnaire"
10 id="wizard_open_questionnaire"/>
12 <record model="ir.actions.act_window" id="open_questionnaires">
13 <field name="name">Questionnaires</field>
14 <field name="res_model">crm_profiling.questionnaire</field>
15 <field name="view_type">form</field>
16 <field name="view_mode">tree,form</field>
19 <menuitem parent="base.menu_crm_config_lead" id="menu_segm_questionnaire"
20 action="open_questionnaires" />
22 <record model="ir.actions.act_window" id="open_questions">
23 <field name="name">Questions</field>
24 <field name="res_model">crm_profiling.question</field>
25 <field name="view_type">form</field>
26 <field name="view_mode">tree,form</field>
29 <menuitem parent="base.menu_crm_config_lead" id="menu_segm_answer"
30 action="open_questions" />
32 <!-- Profiling Questionnaire Tree view -->
34 <record model="ir.ui.view" id="view_questionnaire_tree">
35 <field name="name">Questionnaires</field>
36 <field name="model">crm_profiling.questionnaire</field>
37 <field name="type">tree</field>
38 <field name="arch" type="xml">
39 <tree string="Questionnaires">
40 <field name="name" select="1" colspan="4"/>
41 <field name="description" select="1" colspan="4"/>
42 <field name="questions_ids" colspan="4" nolabel="1"/>
47 <!-- Profiling Questionnaire Form view -->
49 <record model="ir.ui.view" id="view_questionnaire_form">
50 <field name="name">Questionnaires</field>
51 <field name="model">crm_profiling.questionnaire</field>
52 <field name="type">form</field>
53 <field name="arch" type="xml">
54 <form string="Questionnaires">
55 <field name="name" select="1" />
57 <separator string="Questions List" colspan="4"/>
58 <field name="questions_ids" colspan="4" nolabel="1"/>
60 <separator string="Description" colspan="4"/>
61 <field name="description" colspan="4" select="1" nolabel="1"/>
66 <!-- Profiling Answer Tree view -->
68 <record model="ir.ui.view" id="view_answer">
69 <field name="name">Answers</field>
70 <field name="model">crm_profiling.answer</field>
71 <field name="type">tree</field>
72 <field name="arch" type="xml">
73 <tree string="Answers">
74 <field name="question_id" select="1"/>
75 <field name="name" select="1"/>
80 <!-- Profiling Answer Form view -->
82 <record model="ir.ui.view" id="view_answer_form">
83 <field name="name">Answers</field>
84 <field name="model">crm_profiling.answer</field>
85 <field name="type">form</field>
86 <field name="arch" type="xml">
87 <form string="Answers">
88 <field name="question_id" select="1"/>
89 <field name="name" select="1"/>
94 <!-- Profiling Questions Tree view -->
96 <record model="ir.ui.view" id="view_question_tree">
97 <field name="name">Questions</field>
98 <field name="model">crm_profiling.question</field>
99 <field name="type">tree</field>
100 <field name="arch" type="xml">
101 <tree string="Questions">
102 <field name="name" select="1" colspan="4"/>
103 <field name="answers_ids" colspan="4" nolabel="1"/>
108 <!-- Profiling Questions Form view -->
110 <record model="ir.ui.view" id="view_question_form">
111 <field name="name">Questions</field>
112 <field name="model">crm_profiling.question</field>
113 <field name="type">form</field>
114 <field name="arch" type="xml">
115 <form string="Questions">
117 <field name="name" select="1" />
119 <separator string="Avalaible answers" colspan="4"/>
120 <field name="answers_ids" colspan="4" nolabel="1" editable="bottom">
121 <tree string="Answers" editable="bottom">
122 <field name="name" select="1"/>
124 <form string="Answers">
125 <field name="name" select="1"/>
133 <record model="ir.ui.view" id="view_partner_form">
134 <field name="name">res.partner.profile.form</field>
135 <field name="model">res.partner</field>
136 <field name="type">form</field>
137 <field name="inherit_id" ref="base.view_partner_form"/>
138 <field name="arch" type="xml">
139 <notebook position="inside">
140 <page string="Profiling">
141 <button string="Use a questionnaire"
142 name="%(wizard_open_questionnaire)d" type="action" colspan="1"
143 icon="gtk-justify-fill" />
145 <field name="answers_ids" colspan="4" nolabel="1"/>
151 <!-- CRM Segmentation Form view -->
153 <record model="ir.ui.view" id="crm.crm_segmentation-view">
154 <field name="name">crm.segmentation.form</field>
155 <field name="model">crm.segmentation</field>
156 <field name="type">form</field>
157 <field name="arch" type="xml">
158 <form string="Partner Segmentation">
160 <page string="Segmentation">
161 <separator string="Segmentation Description" colspan="4"/>
162 <field name="name" select="1"/>
163 <field name="exclusif"/>
165 <field name="categ_id" colspan="2"/>
167 <field name="description" colspan="4"/>
168 <field name="state"/>
169 <group col="3" colspan="2">
170 <button name="process_start"
171 states="not running" string="Compute Segmentation" type="object"
173 <button name="process_stop" states="running"
174 string="Stop Process" type="object" icon="gtk-stop" />
175 <button name="process_continue" states="running"
176 string="Continue Process" type="object" icon="gtk-go-forward" />
179 <page string="Sales Purchase">
180 <field name="sales_purchase_active"/>
181 <separator string="State of Mind Computation" colspan="4"/>
182 <field name="som_interval"/>
183 <field name="som_interval_max"/>
184 <field name="som_interval_decrease"/>
185 <field name="som_interval_default"/>
186 <separator string="Segmentation Test" colspan="4"/>
187 <field name="segmentation_line" widget="one2many_list" colspan="4"/>
189 <page string="Profiling">
190 <field name="profiling_active" colspan="2"/>
191 <separator string="Profiling Options" colspan="4"/>
192 <field name="parent_id" colspan="2"/><newline/>
193 <separator string="Included Answers :" colspan="2" />
194 <separator string="Excluded Answers :" colspan="2"/>
195 <field name="answer_yes" nolabel="1" colspan="2"/>
196 <field name="answer_no" nolabel="1" colspan="2"/>
203 <!-- CRM Segmentation Tree view -->
205 <record model="ir.ui.view" id="view_partner_crm_segmentation_tree">
206 <field name="name">crm.segmentation.tree</field>
207 <field name="model">crm.segmentation</field>
208 <field name="type">tree</field>
209 <field name="arch" type="xml">
210 <tree string="Partner Segmentations">
212 <field name="description"/>
213 <field name="categ_id"/>