~eduardo-bayardo-bias/openobject-addons/bias_trunk_v8

« back to all changes in this revision

Viewing changes to crm_protocol/crm_view.xml

  • Committer: Eduardo Bayardo
  • Date: 2016-10-06 21:28:13 UTC
  • Revision ID: eduardo.bayardo@bias.com.mx-20161006212813-z4utlenj8qtt3dlg
update crm protocol module

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
    <data>
 
4
 
 
5
    <record model="ir.ui.view" id="crm_case_form_view_inherit">
 
6
        <field name="name">crm.lead.protocol.form</field>
 
7
        <field name="model">crm.lead</field>
 
8
        <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
 
9
        <field name="arch" type="xml">
 
10
            <notebook position="inside">
 
11
                <page name="protocol" string="Protocol">
 
12
                    <group string="SALES" name="sales">
 
13
                        <group>
 
14
                            <field name="partner_invoice" readonly="1"/>
 
15
                            <field name="partner_shipping" readonly="1"/>
 
16
                            <field name="delivery_time" readonly="1"/>
 
17
                            <field name="operating_conditions" readonly="1"/>
 
18
                            <field name="main_contact" readonly="1"/>
 
19
                            <field name="technical_contact" readonly="1"/>
 
20
                            <field name="invoice_contact" readonly="1"/>
 
21
                            <field name="payment_contact" readonly="1"/>
 
22
                            <field name="purchase_contact" readonly="1"/>
 
23
                        </group>
 
24
                        <group>
 
25
                            <field name="leadime" readonly="1"/>
 
26
                            <field name="date_start" colspan="2" readonly="1"/>
 
27
                            <field name="date_stop" readonly="1"/>
 
28
                            <field name="conditions" readonly="1"/>
 
29
                            <field name="payment_terms" readonly="1"/>
 
30
                            <field name="advance" readonly="1"/>
 
31
                            <field name="travel_expenses" readonly="1"/>
 
32
                            <field name="m_o" readonly="1"/>
 
33
                            <field name="other" readonly="1"/>
 
34
                        </group>
 
35
                        <group colspan="4">
 
36
                            <label for="po_contract_1"/>
 
37
                            <div>
 
38
                                <field name="po_contract_1" readonly="1"/>
 
39
                                <field name="po_contract_2" readonly="1"/>
 
40
                            </div>
 
41
                            <label for="quotation"/>
 
42
                            <div>
 
43
                                <field name="quotation" readonly="1"/>
 
44
                            </div>
 
45
                            <label for="authorization_evidence"/>
 
46
                            <div>
 
47
                                <field name="authorization_evidence" readonly="1"/>
 
48
                            </div>
 
49
                        </group>
 
50
                        <group colspan="4">
 
51
                            <div>
 
52
                                <label for="evidence"/>
 
53
                                <field name="evidence" readonly="1"/>
 
54
                                <label for="sale_observations"/>
 
55
                                <field name="sale_observations" readonly="1"/>
 
56
                            </div>
 
57
                        </group>
 
58
                    </group>
 
59
                    <div>
 
60
                        <field  name="sale_state" invisible="1"/>
 
61
                        <button name="button_authorize_sale" string="Authorize" type="object" icon="gtk-convert" class="oe_inline" 
 
62
                                attrs="{'invisible':[('sale_state','=','authorized')]}"/>
 
63
                        <button name="button_reject_sale" string="Reject" type="object" icon="gtk-convert" class="oe_inline" 
 
64
                                attrs="{'invisible':[('sale_state','=','rejected')]}"/>
 
65
                    </div>
 
66
                    <group string="FINANCIAL" name="financial" attrs="{'invisible':['|',('sale_state','=','rejected'),('sale_state','=',False)]}">
 
67
                        <group colspan="4">
 
68
                            <label for="purchase_order"/>
 
69
                            <div>
 
70
                                <field name="purchase_order" class="oe_inline" readonly="1"/>
 
71
                                <field name="nt_purchase_order" class="oe_inline"  readonly="1"
 
72
                                       attrs="{'invisible':[('purchase_order','=',True)],'required':[('purchase_order','!=',True)]}"/>
 
73
 
 
74
                            </div>
 
75
                            <label for="billing"/>
 
76
                            <div>
 
77
                                <field name="billing" class="oe_inline" readonly="1"/>
 
78
                                <field name="nt_billing" class="oe_inline" attrs="{'invisible':[('billing','=',True)]}" readonly="1"/>
 
79
 
 
80
                            </div>
 
81
                            <label for="billing_support"/>
 
82
                            <div>
 
83
                                <field name="billing_support" class="oe_inline" readonly="1"/>
 
84
                                <field name="nt_billing_support" class="oe_inline" attrs="{'invisible':[('billing_support','=',True)]}" readonly="1"/>
 
85
 
 
86
                            </div>
 
87
                            <label for="credit_terms"/>
 
88
                            <div>
 
89
                                <field name="credit_terms" class="oe_inline" readonly="1"/>
 
90
                                <field name="nt_credit_terms" class="oe_inline" attrs="{'invisible':[('credit_terms','=',True)]}" readonly="1"/>
 
91
 
 
92
                            </div>
 
93
                            <label for="commertial_terms"/>
 
94
                            <div>
 
95
                                <field name="commertial_terms" class="oe_inline" readonly="1"/>
 
96
                                <field name="nt_commertial_terms" class="oe_inline" attrs="{'invisible':[('commertial_terms','=',True)]}" readonly="1"/>
 
97
                            </div>
 
98
                        </group>
 
99
                        <group colspan="4">
 
100
                            <field name="financial_notes" readonly="1"/>
 
101
                        </group>
 
102
                        <div>
 
103
                            <field name="financial_state" invisible="1"/>
 
104
                            <button name="button_authorize" string="Authorize" type="object" icon="gtk-convert" class="oe_inline" attrs="{'invisible':[('financial_state','=','authorized')]}"/>
 
105
                            <button name="button_reject" string="Reject" type="object" icon="gtk-convert" class="oe_inline" attrs="{'invisible':[('financial_state','=','rejected')]}"/>
 
106
                        </div>
 
107
                    </group>
 
108
                    <group string="ENGINEERING" name="engineering" 
 
109
                           attrs="{'invisible':['|','|',('financial_state','=','rejected'),('financial_state','=',False),'|',('sale_state','=','rejected'),('sale_state','=',False)]}">
 
110
                        <group colspan="4">
 
111
                            <label for="design_by"/>
 
112
                            <div>
 
113
                                <field name="design_by" />
 
114
                            </div>
 
115
                            <label for="validated_by"/>
 
116
                            <div>
 
117
                                <field name="validated_by" class="oe_inline" readonly="1"/>
 
118
                                <field name="validated_notes" class="oe_inline" readonly="1"/>
 
119
                            </div>
 
120
                        </group>
 
121
                        <group>
 
122
                            <field name="asigned_by" readonly="1"/>
 
123
                            <field name="is_asigned" invisible="1"/>
 
124
                        </group>
 
125
                        <group>
 
126
                        </group>
 
127
                        <group>
 
128
                            <field name="gang_allocation" attrs="{'readonly':['|',('is_asigned','!=',True)]}"/>
 
129
                            <field name="mo_allocation" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
130
                            <field name="gang_travel_expenses" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
131
                        </group>
 
132
                        <group>
 
133
                            <field name="ap_travel_expenses" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
134
                            <field name="vobo" readonly="1"/>
 
135
                        </group>
 
136
                        <group colspan="4">
 
137
                            <label for="change_control"/>
 
138
                            <div>
 
139
                                <field name="change_control" class="oe_inline" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
140
                                <field name="nt_change_control" class="oe_inline" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
141
                            </div>
 
142
                            <label for="material_chart"/>
 
143
                            <div>
 
144
                                <field name="material_chart" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
145
                            </div>
 
146
                            <label for="material_return"/>
 
147
                            <div>
 
148
                                <field name="material_return" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
149
                            </div>
 
150
                            <label for="technical_memory"/>
 
151
                            <div>
 
152
                                <field name="technical_memory" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
153
                            </div>
 
154
                            <label for="delivery_report" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
155
                            <div>
 
156
                                <field name="delivery_report" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
157
                            </div>
 
158
                            <label for="blueprints"/>
 
159
                            <div>
 
160
                                <field name="blueprints" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
161
                            </div>
 
162
                            <label for="photos"/>
 
163
                            <div>
 
164
                                <field name="photos" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
165
                            </div>
 
166
                            <label for="diagrams"/>
 
167
                            <div>
 
168
                                <field name="diagrams" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
169
                            </div>
 
170
                            <label for="fluke_test"/>
 
171
                            <div>
 
172
                                <field name="fluke_test" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
173
                            </div>
 
174
                            <label for="certifications"/>
 
175
                            <div>
 
176
                                <field name="certifications" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
177
                            </div>
 
178
                            <label for="operative_close"/>
 
179
                            <div>
 
180
                                <field name="operative_close" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
181
                            </div>
 
182
                            <label for="operative_documentry"/>
 
183
                            <div>
 
184
                                <field name="operative_documentry" attrs="{'readonly':[('is_asigned','!=',True)]}"/>
 
185
                            </div>
 
186
                            <label for="final_close"/>
 
187
                            <div>
 
188
                                <field name="final_close" readonly="1"/>
 
189
                            </div>
 
190
                        </group>
 
191
                        <group string="ADMINISTRATION" colspan="4">
 
192
                            <div>
 
193
                                <button name="button_po" string="Purchase Order" type="object" icon="gtk-convert" class="oe_inline"/>
 
194
                                <button name="button_picking_in" string="Picking IN" type="object" icon="gtk-convert" class="oe_inline"/>
 
195
                                <button name="button_supplier_invoice" string="Supplier Invoice" type="object" icon="gtk-convert" class="oe_inline"/>
 
196
                            </div>
 
197
                            <div>
 
198
                                <button name="button_picking_out" string="Picking Out" type="object" icon="gtk-convert" class="oe_inline"/>
 
199
                                <button name="button_payment" string="Payment" type="object" icon="gtk-convert" class="oe_inline"/>
 
200
                                <button name="button_cost_chart" string="Cost Chart" type="object" icon="gtk-convert" class="oe_inline"/>
 
201
                            </div>
 
202
                        </group>
 
203
                    </group>
 
204
                </page>
 
205
            </notebook>
 
206
        </field>
 
207
    </record>
 
208
 
 
209
    <record model="ir.ui.view" id="crm_case_form_view_sale">
 
210
        <field name="name">crm.lead.protocol.sale.form</field>
 
211
        <field name="model">crm.lead</field>
 
212
        <field name="inherit_id" ref="crm_case_form_view_inherit" />
 
213
        <field name="groups_id" eval="[(6,0, [ref('base.group_sale_salesman')])]" />
 
214
        <field name="arch" type="xml">
 
215
            <group name="sales" position="replace">
 
216
                    <group string="SALES" name="sales">
 
217
                        <group>
 
218
                            <field name="partner_invoice" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
219
                            <field name="partner_shipping" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
220
                            <field name="delivery_time" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
221
                            <field name="operating_conditions" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
222
                            <field name="main_contact" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
223
                            <field name="technical_contact" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
224
                            <field name="invoice_contact" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
225
                            <field name="payment_contact" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
226
                            <field name="purchase_contact" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
227
                        </group>
 
228
                        <group>
 
229
                            <field name="leadime" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
230
                            <field name="date_start" colspan="2" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
231
                            <field name="date_stop" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
232
                            <field name="conditions" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
233
                            <field name="payment_terms" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
234
                            <field name="advance" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
235
                            <field name="travel_expenses" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
236
                            <field name="m_o" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
237
                            <field name="other" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
238
                        </group>
 
239
                        <group colspan="4">
 
240
                            <label for="po_contract_1"/>
 
241
                            <div>
 
242
                                <field name="po_contract_1" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
243
                                <field name="po_contract_2" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
244
                            </div>
 
245
                            <label for="quotation"/>
 
246
                            <div>
 
247
                                <field name="quotation" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
248
                            </div>
 
249
                            <label for="authorization_evidence"/>
 
250
                            <div>
 
251
                                <field name="authorization_evidence" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
252
                            </div>
 
253
                        </group>
 
254
                        <group colspan="4">
 
255
                            <div>
 
256
                                <label for="evidence"/>
 
257
                                <field name="evidence" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
258
                                <label for="sale_observations" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
259
                                <field name="sale_observations" attrs="{'readonly':[('sale_state','=','authorized')]}"/>
 
260
                            </div>
 
261
                        </group>
 
262
                    </group>
 
263
            </group>                
 
264
        </field>
 
265
    </record>
 
266
    <record model="ir.ui.view" id="crm_case_form_view_financial">
 
267
        <field name="name">crm.lead.protocol.financial.form</field>
 
268
        <field name="model">crm.lead</field>
 
269
        <field name="inherit_id" ref="crm_case_form_view_inherit" />
 
270
        <field name="groups_id" eval="[(6,0, [ref('account.group_account_user')])]" />
 
271
        <field name="arch" type="xml">
 
272
            <group name="financial" position="replace">
 
273
                    <group string="FINANCIAL" name="financial" attrs="{'invisible':['|',('sale_state','=','rejected'),('sale_state','=',False)]}">
 
274
                        <group colspan="4">
 
275
                            <label for="purchase_order"/>
 
276
                            <div>
 
277
                                <field name="purchase_order" class="oe_inline" attrs="{'readonly':[('financial_state','=','authorized')]}"/>
 
278
                                <field name="nt_purchase_order" class="oe_inline" 
 
279
                                       attrs="{'invisible':[('purchase_order','=',True)],'required':[('purchase_order','!=',True)], 'readonly':[('financial_state','=','authorized')]}"/>
 
280
                            </div>
 
281
                            <label for="billing"/>
 
282
                            <div>
 
283
                                <field name="billing" class="oe_inline" attrs="{'readonly':[('financial_state','=','authorized')]}"/>
 
284
                                <field name="nt_billing" class="oe_inline" attrs="{'invisible':[('billing','=',True)], 'readonly':[('financial_state','=','authorized')]}"/>
 
285
 
 
286
                            </div>
 
287
                            <label for="billing_support"/>
 
288
                            <div>
 
289
                                <field name="billing_support" class="oe_inline" attrs="{'readonly':[('financial_state','=','authorized')]}"/>
 
290
                                <field name="nt_billing_support" class="oe_inline" attrs="{'invisible':[('billing_support','=',True)], 'readonly':[('financial_state','=','authorized')]}"/>
 
291
 
 
292
                            </div>
 
293
                            <label for="credit_terms"/>
 
294
                            <div>
 
295
                                <field name="credit_terms" class="oe_inline" attrs="{'readonly':[('financial_state','=','authorized')]}"/>
 
296
                                <field name="nt_credit_terms" class="oe_inline" attrs="{'invisible':[('credit_terms','=',True)], 'readonly':[('financial_state','=','authorized')]}"/>
 
297
 
 
298
                            </div>
 
299
                            <label for="commertial_terms"/>
 
300
                            <div>
 
301
                                <field name="commertial_terms" class="oe_inline" attrs="{'readonly':[('financial_state','=','authorized')]}"/>
 
302
                                <field name="nt_commertial_terms" class="oe_inline" attrs="{'invisible':[('commertial_terms','=',True)], 'readonly':[('financial_state','=','authorized')]}"/>
 
303
                            </div>
 
304
                        </group>
 
305
                        <group colspan="4">
 
306
                            <field name="financial_notes" attrs="{'readonly':[('financial_state','=','authorized')]}"/>
 
307
                        </group>
 
308
                        <div>
 
309
                            <field name="financial_state" invisible="1"/>
 
310
                            <button name="button_authorize" string="Authorize" type="object" icon="gtk-convert" class="oe_inline" attrs="{'invisible':[('financial_state','=','authorized')]}"/>
 
311
                            <button name="button_reject" string="Reject" type="object" icon="gtk-convert" class="oe_inline" attrs="{'invisible':[('financial_state','=','rejected')]}"/>
 
312
                        </div>
 
313
                    </group>
 
314
            </group>                
 
315
        </field>
 
316
    </record>
 
317
    <record model="ir.ui.view" id="crm_case_form_view_validated_by">
 
318
        <field name="name">crm.lead.protocol.validated_by.form</field>
 
319
        <field name="model">crm.lead</field>
 
320
        <field name="inherit_id" ref="crm_case_form_view_inherit" />
 
321
        <field name="groups_id" eval="[(6,0, [ref('stock.group_stock_manager')])]" />
 
322
        <field name="arch" type="xml">
 
323
            <field name="validated_by" position="replace">
 
324
                <field name="validated_by" class="oe_inline"/>
 
325
            </field>                
 
326
        </field>
 
327
    </record>
 
328
    <record model="ir.ui.view" id="crm_case_form_view_validated_notes">
 
329
        <field name="name">crm.lead.protocol.validated_notes.form</field>
 
330
        <field name="model">crm.lead</field>
 
331
        <field name="inherit_id" ref="crm_case_form_view_inherit" />
 
332
        <field name="groups_id" eval="[(6,0, [ref('stock.group_stock_manager')])]" />
 
333
        <field name="arch" type="xml">
 
334
            <field name="validated_notes" position="replace">
 
335
                <field name="validated_notes" class="oe_inline"/>
 
336
            </field>                
 
337
        </field>
 
338
    </record>
 
339
    <record model="ir.ui.view" id="crm_case_form_view_asigned_by">
 
340
        <field name="name">crm.lead.protocol.asigned_by.form</field>
 
341
        <field name="model">crm.lead</field>
 
342
        <field name="inherit_id" ref="crm_case_form_view_inherit" />
 
343
        <field name="groups_id" eval="[(6,0, [ref('stock.group_stock_manager')])]" />
 
344
        <field name="arch" type="xml">
 
345
            <field name="asigned_by" position="replace">
 
346
                <field name="asigned_by"/>
 
347
            </field>                
 
348
        </field>
 
349
    </record>
 
350
    <record model="ir.ui.view" id="crm_case_form_view_vobo">
 
351
        <field name="name">crm.lead.protocol.vobo.form</field>
 
352
        <field name="model">crm.lead</field>
 
353
        <field name="inherit_id" ref="crm_case_form_view_inherit" />
 
354
        <field name="groups_id" eval="[(6,0, [ref('stock.group_stock_manager'),ref('account.group_account_manager')])]" />
 
355
        <field name="arch" type="xml">
 
356
            <field name="vobo" position="replace">
 
357
                <field name="vobo"/>
 
358
            </field>                
 
359
        </field>
 
360
    </record>
 
361
    <record model="ir.ui.view" id="crm_case_form_view_final_close">
 
362
        <field name="name">crm.lead.protocol.final_close.form</field>
 
363
        <field name="model">crm.lead</field>
 
364
        <field name="inherit_id" ref="crm_case_form_view_inherit" />
 
365
        <field name="groups_id" eval="[(6,0, [ref('account.group_account_manager')])]" />
 
366
        <field name="arch" type="xml">
 
367
            <field name="final_close" position="replace">
 
368
                <field name="final_close"/>
 
369
            </field>                
 
370
        </field>
 
371
    </record>
 
372
 
 
373
    </data>
 
374
</openerp>
 
375