[FIX] account_payment:Update Payment date accourding to the Prefered dade
[odoo/odoo.git] / addons / crm_profiling / crm_profiling_view.xml
1 <?xml version="1.0" ?>
2 <openerp>
3     <data>
4
5         <wizard
6             string="Using a questionnaire"
7             model="crm_profiling.questionnaire"
8             name="open_questionnaire"
9             menu="False"
10             id="wizard_open_questionnaire"/>
11
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>
17         </record>
18
19         <menuitem parent="base.menu_crm_config_lead" id="menu_segm_questionnaire"
20                   action="open_questionnaires" />
21
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>
27         </record>
28
29         <menuitem parent="base.menu_crm_config_lead" id="menu_segm_answer"
30                   action="open_questions" />
31
32 <!-- Profiling Questionnaire Tree view  -->
33
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"/>
43           </tree>
44         </field>
45     </record>
46
47 <!-- Profiling Questionnaire Form view  -->
48
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" />
56             <newline/>
57             <separator string="Questions List" colspan="4"/>
58             <field name="questions_ids" colspan="4" nolabel="1"/>
59             <newline/>
60             <separator string="Description" colspan="4"/>
61             <field name="description" colspan="4" select="1" nolabel="1"/>
62           </form>
63         </field>
64     </record>
65
66 <!-- Profiling Answer Tree view  -->
67
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"/>
76           </tree>
77         </field>
78     </record>
79
80 <!-- Profiling Answer Form view  -->
81
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"/>
90           </form>
91         </field>
92     </record>
93
94 <!-- Profiling Questions Tree view  -->
95
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"/>
104           </tree>
105         </field>
106     </record>
107
108 <!-- Profiling Questions Form view  -->
109
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">
116             <newline/>
117             <field name="name" select="1" />
118             <newline/>
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"/>
123               </tree>
124               <form string="Answers">
125                 <field name="name" select="1"/>
126               </form>
127             </field>
128           </form>
129         </field>
130     </record>
131
132
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" />
144                   <newline/>
145                   <field name="answers_ids" colspan="4" nolabel="1"/>
146                 </page>
147             </notebook>
148         </field>
149     </record>
150
151 <!-- CRM Segmentation Form view  -->
152
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">
159                 <notebook>
160                 <page string="Segmentation">
161                     <separator string="Segmentation Description" colspan="4"/>
162                     <field name="name" select="1"/>
163                     <field name="exclusif"/>
164                     <newline/>
165                     <field name="categ_id" colspan="2"/>
166                     <newline/>
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"
172                             icon="gtk-apply" />
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" />
177                     </group>
178                 </page>
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"/>
188                 </page>
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"/>
197                 </page>
198                 </notebook>
199             </form>
200         </field>
201     </record>
202
203 <!-- CRM Segmentation Tree view  -->
204
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">
211                 <field name="name"/>
212                 <field name="description"/>
213                 <field name="categ_id"/>
214             </tree>
215         </field>
216     </record>
217
218     </data>
219 </openerp>