~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to sales_followup/sale_followup_view.xml

UF-385 [ADD] Added consumption_calculation 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 id="action_sale_order_follow_up" model="ir.actions.server">
6
 
            <field name="name">Order Follow Up</field>
7
 
            <field name="model_id" ref="model_sale_order_followup"/>
8
 
            <field name="state">code</field>
9
 
            <field name="code">action = obj.start_order_followup(context=context)</field>
10
 
        </record>
11
 
        
12
 
        <record id="ir_open_sale_order_follow_up" model="ir.values">
13
 
            <field name="key2">client_action_multi</field>
14
 
            <field name="model">sale.order</field>
15
 
            <field name="name">Order Follow Up</field>
16
 
            <field eval="'ir.actions.server,%d'%action_sale_order_follow_up" name="value"/>
17
 
            <field eval="True" name="object"/>
18
 
        </record>
19
 
    
20
 
        <!-- REMOVE THE DOCUMENT VIEW
21
 
            <record id="sale_order_followup_document_view" model="ir.ui.view">
22
 
            <field name="name">sale.order.followup.form.view</field>
23
 
            <field name="model">sale.order.followup</field>
24
 
            <field name="type">form</field>
25
 
            <field name="arch" type="xml">
26
 
                <form string="Order follow up">
27
 
                    <separator colspan="4" string="General Information" />
28
 
                    <field name="order_id" />
29
 
                    <field name="cust_ref" />
30
 
                    <field name="creation_date" />
31
 
                    <field name="state" />
32
 
                    <separator colspan="4" string="Associated documents" />
33
 
                    <field name="requested_date" />
34
 
                    <field name="confirmed_date" />
35
 
                    <field name="line_ids" colspan="4" nolabel="1">
36
 
                        <tree string="Order follow up lines">
37
 
                            <field name="line_number" />
38
 
                            <field name="product_id" />
39
 
                            <field name="procure_method" />
40
 
                            <field name="po_cft" />
41
 
                            <field name="qty_ordered" />
42
 
                            <field name="uom_id" />
43
 
                            <field name="tender_ids" />
44
 
                            <field name="purchase_ids" />
45
 
                            <field name="incoming_ids" />
46
 
                            <field name="available_qty" />
47
 
                            <field name="outgoing_nb" />
48
 
                        </tree>
49
 
                    </field>
50
 
                    <separator colspan="4" />
51
 
                    <group colspan="4" col="6">
52
 
                        <button special="cancel" string="Cancel" icon="gtk-cancel" colspan="2" />
53
 
                        <button name="update_followup" string="Update" icon="gtk-execute" colspan="2" type="object" />
54
 
                        <button name="switch_progress" string="Switch to progress view" icon="terp-gtk-jump-to-ltr" colspan="2" type="object" />
55
 
                    </group>
56
 
                </form>
57
 
            </field>
58
 
        </record>-->
59
 
 
60
 
        <record id="sale_order_followup_split_progress_view" model="ir.ui.view">
61
 
            <field name="name">sale.order.followup.progress.view</field>
62
 
            <field name="model">sale.order.followup</field>
63
 
            <field name="type">form</field>
64
 
            <field name="arch" type="xml">
65
 
                <form string="Order follow up">
66
 
                    <separator colspan="4" string="General Information" />
67
 
                    <field name="order_id" />
68
 
                    <field name="cust_ref" />
69
 
                    <field name="creation_date" />
70
 
                    <field name="state" />
71
 
                    <separator colspan="4" string="Associated documents" />
72
 
                    <field name="requested_date" />
73
 
                    <field name="confirmed_date" />
74
 
                    <field name="line_ids" colspan="4" nolabel="1">
75
 
                        <tree string="Order follow up lines">
76
 
                            <field name="original_order_id" />
77
 
                            <field name="line_number" />
78
 
                            <field name="product_id" />
79
 
                            <field name="procure_method" />
80
 
                            <field name="po_cft" />
81
 
                            <field name="qty_ordered" />
82
 
                            <field name="uom_id" />
83
 
                            <field name="sourced_ok" />
84
 
                            <field name="tender_status" />
85
 
                            <!--<field name="quotation_status" />-->
86
 
                            <field name="purchase_status" />
87
 
                            <field name="incoming_status" />
88
 
                            <field name="product_available" />
89
 
                            <field name="outgoing_status" />
90
 
                        </tree>
91
 
                    </field>
92
 
                    <separator colspan="4" />
93
 
                    <group colspan="4" col="6">
94
 
                        <button special="cancel" string="Close" icon="gtk-cancel" colspan="2" />
95
 
                        <button name="update_followup" string="Update" icon="gtk-execute" colspan="2" type="object" />
96
 
                    </group>
97
 
                </form>
98
 
            </field>
99
 
        </record>
100
 
        
101
 
        <record id="sale_order_followup_progress_view" model="ir.ui.view">
102
 
            <field name="name">sale.order.followup.progress.view</field>
103
 
            <field name="model">sale.order.followup</field>
104
 
            <field name="type">form</field>
105
 
            <field name="arch" type="xml">
106
 
                <form string="Order follow up">
107
 
                    <separator colspan="4" string="General Information" />
108
 
                    <field name="order_id" />
109
 
                    <field name="cust_ref" />
110
 
                    <field name="creation_date" />
111
 
                    <field name="state" />
112
 
                    <separator colspan="4" string="Associated documents" />
113
 
                    <field name="requested_date" />
114
 
                    <field name="confirmed_date" />
115
 
                    <field name="line_ids" colspan="4" nolabel="1">
116
 
                        <tree string="Order follow up lines">
117
 
                            <field name="line_number" />
118
 
                            <field name="product_id" />
119
 
                            <field name="procure_method" />
120
 
                            <field name="po_cft" />
121
 
                            <field name="qty_ordered" />
122
 
                            <field name="uom_id" />
123
 
                            <field name="sourced_ok" />
124
 
                            <field name="tender_status" />
125
 
                            <!--<field name="quotation_status" />-->
126
 
                            <field name="purchase_status" />
127
 
                            <field name="incoming_status" />
128
 
                            <field name="product_available" />
129
 
                            <field name="outgoing_status" />
130
 
                        </tree>
131
 
                    </field>
132
 
                    <separator colspan="4" />
133
 
                    <group colspan="4" col="6">
134
 
                        <button special="cancel" string="Close" icon="gtk-cancel" colspan="2" />
135
 
                        <button name="update_followup" string="Update" icon="gtk-execute" colspan="2" type="object" />
136
 
                    </group>
137
 
                </form>
138
 
            </field>
139
 
        </record>
140
 
        
141
 
        <record id="sale_order_line_followup_tree_view" model="ir.ui.view">
142
 
            <field name="name">sale.order.line.followup.tree.view</field>
143
 
            <field name="model">sale.order.line.followup</field>
144
 
            <field name="type">tree</field>
145
 
            <field name="arch" type="xml">
146
 
                <tree string="Order follow up lines">
147
 
                    <field name="original_order_id" />
148
 
                    <field name="line_number" />
149
 
                    <field name="product_id" />
150
 
                    <field name="procure_method" />
151
 
                    <field name="po_cft" />
152
 
                    <field name="qty_ordered" />
153
 
                    <field name="uom_id" />
154
 
                    <field name="sourced_ok" />
155
 
                    <field name="tender_ids" />
156
 
                    <!--<field name="quotation_ids" />-->
157
 
                    <!--<field name="quotation_status" />-->
158
 
                    <field name="purchase_ids" />
159
 
                    <field name="purchase_status" />
160
 
                    <field name="incoming_ids" />
161
 
                    <field name="incoming_status" />
162
 
                    <field name="product_available" />
163
 
                    <field name="available_qty" />
164
 
                    <field name="outgoing_nb" />
165
 
                    <field name="outgoing_status" />
166
 
                </tree>
167
 
            </field>
168
 
        </record>
169
 
        
170
 
        <record id="sale_order_line_followup_form_view" model="ir.ui.view">
171
 
            <field name="name">sale.order.line.followup.form.view</field>
172
 
            <field name="model">sale.order.line.followup</field>
173
 
            <field name="type">form</field>
174
 
            <field name="arch" type="xml">
175
 
                <form string="Order follow up line">
176
 
                    <separator colspan="4" string="General Information" />
177
 
                    <field name="line_number" />
178
 
                    <field name="line_id" />
179
 
                    <field name="product_id" />
180
 
                    <field name="qty_ordered" />
181
 
                    <field name="procure_method" />
182
 
                    <field name="po_cft" />
183
 
                    <field name="original_order_id" attrs="{'invisible': [('original_order_id', '=', False)]}" />
184
 
                    <separator colspan="4" string="Associated documents" />
185
 
                    <field name="tender_ids" nolabel="1" string="Tenders" colspan="4">
186
 
                        <tree string="Tender" colors="green:state in ('done');grey: state in ('cancel')">
187
 
                            <field name="product_id" />
188
 
                            <field name="tender_id" />
189
 
                            <field name="qty" />
190
 
                            <field name="product_uom" />
191
 
                            <field name="date_planned" />
192
 
                            <field name="state" />
193
 
                            <button name="go_to_tender_info" type="object" string="Go to tender form" icon="terp-stock_zoom" />
194
 
                        </tree>
195
 
                    </field>
196
 
                    <!--<field name="quotation_ids" nolabel="1" colspan="4" string="Quotations">
197
 
                        <tree string="Request for Quotation"
198
 
                            colors="red: state in ('rfq_sent');blue: state in ('rfq_updated');green: state in ('done')">
199
 
                            <field name="name" />
200
 
                            <field name="order_type" />
201
 
                            <field name="date_order" />
202
 
                            <field name="partner_id" />
203
 
                            <field name="delivery_requested_date" />
204
 
                            <field name="amount_total" />
205
 
                            <field name="state" />
206
 
                            <button name="go_to_rfq_info" type="object" string="Go to RfQ form" icon="terp-stock_zoom" />
207
 
                        </tree>
208
 
                    </field>-->
209
 
                    <field name="purchase_line_ids" nolabel="1" colspan="4" string="Purchase Orders">
210
 
                        <tree string="Purchase Orders"
211
 
                            colors="grey: state in ('cancel', 'done');green: state in ('approved');blue: state in ('confirmed')">
212
 
                            <field name="product_id" />
213
 
                            <field name="order_id" />
214
 
                            <field name="partner_id" />
215
 
                            <field name="order_type" string="Order type" />
216
 
                            <field name="product_qty" />
217
 
                            <field name="product_uom" />
218
 
                            <field name="date_planned" />
219
 
                            <field name="po_state" string="State" />
220
 
                            <button name="go_to_po_info" type="object" string="Go to purchase order form" icon="terp-stock_zoom" />
221
 
                        </tree>
222
 
                    </field>
223
 
                    <field name="incoming_ids" nolabel="1" colspan="4" string="Incoming">
224
 
                        <tree string="Incoming Products"
225
 
                            colors="grey: state in ('cancel', 'done');green: state in ('available')">
226
 
                            <field name="name" />
227
 
                            <field name="picking_id" string="Shipment" />
228
 
                            <field name="order_type" />
229
 
                            <field name="location_id" string="Source Loc." />
230
 
                            <field name="location_dest_id" string="Dest. Loc." />
231
 
                            <field name="partner_id" string="Supplier" />
232
 
                            <field name="product_id" />
233
 
                            <field name="product_qty" />
234
 
                            <field name="product_uom" />
235
 
                            <field name="date_expected" string="Expected receipt" />
236
 
                            <field name="state" />
237
 
                            <button name="go_to_incoming_info" type="object" string="Go to incoming move form" icon="terp-stock_zoom" />
238
 
                        </tree>
239
 
                    </field>
240
 
                    <field name="displayed_out_ids" nolabel="1" colspan="4" string="Outgoing">
241
 
                        <tree string="Outgoing Products"
242
 
                            colors="grey: state in ('cancel', 'done');green: state in ('available')">
243
 
                            <field name="name" />
244
 
                            <field name="parent_doc_id" string="Picking" />
245
 
                            <field name="order_type" />
246
 
                            <field name="location_id" string="Source Loc." />
247
 
                            <field name="location_dest_id" string="Dest. Loc." />
248
 
                            <field name="partner_id" string="Customer" />
249
 
                            <field name="product_id" />
250
 
                            <field name="product_qty" />
251
 
                            <field name="product_uom" />
252
 
                            <field name="date_expected" string="Expected delivery" />
253
 
                            <field name="state" />
254
 
                            <button name="go_to_outgoing_info" type="object" string="Go to outgoing move form" icon="terp-stock_zoom" />
255
 
                        </tree>
256
 
                    </field>
257
 
                </form>
258
 
            </field>
259
 
        </record>
260
 
        
261
 
        <record id="sale_order_line_follow_choose_view" model="ir.ui.view">
262
 
            <field name="name">sale.order.line.follow.choose.view</field>
263
 
            <field name="model">sale.order.followup</field>
264
 
            <field name="type">form</field>
265
 
            <field name="arch" type="xml">
266
 
                <form string="Choose the view type">
267
 
                    <separator colspan="4" string="Type of view" />
268
 
                    <field name="choose_type" colspan="4" required="1" />
269
 
                    <separator colspan="4" string="Actions" />
270
 
                    <button special="cancel" string="Cancel" icon="gtk-cancel" colspan="2" />
271
 
                    <button name="go_to_view" string="Go to view" icon="gtk-execute" colspan="2" type="object"/>
272
 
                </form>
273
 
            </field>
274
 
        </record>
275
 
        
276
 
        <record id="sale_order_followup_from_menu" model="ir.ui.view">
277
 
            <field name="name">sale.order.followup.from.menu</field>
278
 
            <field name="model">sale.order.followup.from.menu</field>
279
 
            <field name="type">form</field>
280
 
            <field name="arch" type="xml">
281
 
                <form string="Choose a Sale Order">
282
 
                    <separator colspan="4" string="Select Sale Order" />
283
 
                <field name="order_id" 
284
 
                    attrs="{'readonly': [('cust_order_id', '!=', False)], 'required': [('cust_order_id', '=', False)]}" 
285
 
                    domain="[('state', '!=', 'draft')]"
286
 
                    context="{'active_test': False}"
287
 
                       on_change="change_order_id(order_id, cust_order_id, 'order_id')"/>
288
 
                    <field name="cust_order_id" 
289
 
                                       context="{'from_followup': True, 'active_test': False}" 
290
 
                                       attrs="{'readonly': [('order_id', '!=', False)], 'required': [('cust_order_id', '=', False)]}" 
291
 
                    domain="[('state', '!=', 'draft')]"
292
 
                    on_change="change_order_id(order_id, cust_order_id, 'cust_order_id')" />
293
 
                    <separator colspan="4" string="Actions" />
294
 
                    <button special="cancel" string="Cancel" colspan="2" icon="gtk-cancel" />
295
 
                    <button name="go_to_followup" string="Go to followup" icon="gtk-execute" colspan="2" type="object"/>
296
 
                </form>
297
 
            </field>
298
 
        </record>
299
 
        
300
 
        <record id="action_sale_order_followup_from_menu" model="ir.actions.act_window">
301
 
            <field name="name">Sale Order Follow-Up</field>
302
 
            <field name="res_model">sale.order.followup.from.menu</field>
303
 
            <field name="view_type">form</field>
304
 
            <field name="view_mode">form</field>
305
 
            <field name="target">new</field>
306
 
        </record>
307
 
        
308
 
        <menuitem id="menuitem_sale_order_followup_from_menu"
309
 
              action="action_sale_order_followup_from_menu"
310
 
              parent="base.menu_sales"
311
 
              sequence="1" />
312
 
 
313
 
    
314
 
    </data>
315
 
</openerp>