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>
18 <menuitem parent="crm.menu_crm_configuration" id="menu_segm_questionnaire"
19 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>
28 <menuitem parent="crm.menu_crm_configuration" id="menu_segm_answer"
29 action="open_questions" />
31 <!-- Profiling Questionnaire Tree view -->
33 <record model="ir.ui.view" id="view_questionnaire_tree">
34 <field name="name">Questionnaires</field>
35 <field name="model">crm_profiling.questionnaire</field>
36 <field name="type">tree</field>
37 <field name="arch" type="xml">
38 <tree string="Questionnaires">
39 <field name="name" select="1" colspan="4"/>
40 <field name="description" select="1" colspan="4"/>
41 <field name="questions_ids" colspan="4" nolabel="1"/>
46 <!-- Profiling Questionnaire Form view -->
48 <record model="ir.ui.view" id="view_questionnaire_form">
49 <field name="name">Questionnaires</field>
50 <field name="model">crm_profiling.questionnaire</field>
51 <field name="type">form</field>
52 <field name="arch" type="xml">
53 <form string="Questionnaires">
54 <field name="name" select="1" />
56 <separator string="Questions List" colspan="4"/>
57 <field name="questions_ids" colspan="4" nolabel="1"/>
59 <separator string="Description" colspan="4"/>
60 <field name="description" colspan="4" select="1" nolabel="1"/>
65 <!-- Profiling Answer Tree view -->
67 <record model="ir.ui.view" id="view_answer">
68 <field name="name">Answers</field>
69 <field name="model">crm_profiling.answer</field>
70 <field name="type">tree</field>
71 <field name="arch" type="xml">
72 <tree string="Answers">
73 <field name="question_id" select="1"/>
74 <field name="name" select="1"/>
79 <!-- Profiling Answer Form view -->
81 <record model="ir.ui.view" id="view_answer_form">
82 <field name="name">Answers</field>
83 <field name="model">crm_profiling.answer</field>
84 <field name="type">form</field>
85 <field name="arch" type="xml">
86 <form string="Answers">
87 <field name="question_id" select="1"/>
88 <field name="name" select="1"/>
93 <!-- Profiling Questions Tree view -->
95 <record model="ir.ui.view" id="view_question_tree">
96 <field name="name">Questions</field>
97 <field name="model">crm_profiling.question</field>
98 <field name="type">tree</field>
99 <field name="arch" type="xml">
100 <tree string="Questions">
101 <field name="name" select="1" colspan="4"/>
102 <field name="answers_ids" colspan="4" nolabel="1"/>
107 <!-- Profiling Questions Form view -->
109 <record model="ir.ui.view" id="view_question_form">
110 <field name="name">Questions</field>
111 <field name="model">crm_profiling.question</field>
112 <field name="type">form</field>
113 <field name="arch" type="xml">
114 <form string="Questions">
116 <field name="name" select="1" />
118 <separator string="Avalaible answers" colspan="4"/>
119 <field name="answers_ids" colspan="4" nolabel="1" editable="bottom">
120 <tree string="Answers" editable="bottom">
121 <field name="name" select="1"/>
123 <form string="Answers">
124 <field name="name" select="1"/>
132 <record model="ir.ui.view" id="view_partner_form">
133 <field name="name">res.partner.profile.form</field>
134 <field name="model">res.partner</field>
135 <field name="type">form</field>
136 <field name="inherit_id" ref="base.view_partner_form"/>
137 <field name="arch" type="xml">
138 <notebook position="inside">
139 <page string="Profiling">
140 <button string="Use a questionnaire"
141 name="%(wizard_open_questionnaire)d" type="action" colspan="1"
142 icon="gtk-justify-fill" />
144 <field name="answers_ids" colspan="4" nolabel="1"/>
150 <!-- CRM Segmentation Form view -->
152 <record model="ir.ui.view" id="crm.crm_segmentation-view">
153 <field name="name">crm.segmentation.form</field>
154 <field name="model">crm.segmentation</field>
155 <field name="type">form</field>
156 <field name="arch" type="xml">
157 <form string="Partner Segmentation">
159 <page string="Segmentation">
160 <separator string="Segmentation Description" colspan="4"/>
161 <field name="name" select="1"/>
162 <field name="exclusif"/>
164 <field name="categ_id" select="2" colspan="2"/>
166 <field name="description" select="2" colspan="4"/>
167 <field name="state"/>
168 <group col="3" colspan="2">
169 <button name="process_start"
170 states="not running" string="Compute Segmentation" type="object"
172 <button name="process_stop" states="running"
173 string="Stop Process" type="object" icon="gtk-stop" />
174 <button name="process_continue" states="running"
175 string="Continue Process" type="object" icon="gtk-go-forward" />
178 <page string="Sales Purchase">
179 <field name="sales_purchase_active"/>
180 <separator string="State of Mind Computation" colspan="4"/>
181 <field name="som_interval"/>
182 <field name="som_interval_max"/>
183 <field name="som_interval_decrease"/>
184 <field name="som_interval_default"/>
185 <separator string="Segmentation Test" colspan="4"/>
186 <field name="segmentation_line" widget="one2many_list" colspan="4"/>
188 <page string="Profiling">
189 <field name="profiling_active" colspan="2"/>
190 <separator string="Profiling Options" colspan="4"/>
191 <field name="parent_id" colspan="2"/><newline/>
192 <separator string="Included Answers :" colspan="2" />
193 <separator string="Excluded Answers :" colspan="2"/>
194 <field name="answer_yes" nolabel="1" colspan="2"/>
195 <field name="answer_no" nolabel="1" colspan="2"/>
202 <!-- CRM Segmentation Tree view -->
204 <record model="ir.ui.view" id="view_partner_crm_segmentation_tree">
205 <field name="name">crm.segmentation.tree</field>
206 <field name="model">crm.segmentation</field>
207 <field name="type">tree</field>
208 <field name="arch" type="xml">
209 <tree string="Partner Segmentations">
211 <field name="description"/>
212 <field name="categ_id"/>