1
<?xml version="1.0" encoding="utf-8"?>
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>
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"/>
20
<record id="sale_order_followup_document_view" model="ir.ui.view">
21
<field name="name">sale.order.followup.form.view</field>
22
<field name="model">sale.order.followup</field>
23
<field name="type">form</field>
24
<field name="arch" type="xml">
25
<form string="Order follow up">
26
<separator colspan="4" string="General Information" />
27
<field name="order_id" />
28
<field name="cust_ref" />
29
<field name="creation_date" />
30
<field name="state" />
31
<separator colspan="4" string="Associated documents" />
32
<field name="requested_date" />
33
<field name="confirmed_date" />
34
<field name="line_ids" colspan="4" nolabel="1">
35
<tree string="Order follow up lines">
36
<field name="line_number" />
37
<field name="product_id" />
38
<field name="procure_method" />
39
<field name="po_cft" />
40
<field name="qty_ordered" />
41
<field name="uom_id" />
42
<field name="tender_ids" />
43
<!--<field name="quotation_ids" />-->
44
<field name="purchase_ids" />
45
<field name="incoming_ids" />
46
<field name="available_qty" />
47
<field name="outgoing_nb" />
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" />
60
<record id="sale_order_followup_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="line_number" />
77
<field name="product_id" />
78
<field name="procure_method" />
79
<field name="po_cft" />
80
<field name="qty_ordered" />
81
<field name="uom_id" />
82
<field name="sourced_ok" />
83
<field name="tender_status" />
84
<!--<field name="quotation_status" />-->
85
<field name="purchase_status" />
86
<field name="incoming_status" />
87
<field name="product_available" />
88
<field name="outgoing_status" />
91
<separator colspan="4" />
92
<group colspan="4" col="6">
93
<button special="cancel" string="Cancel" icon="gtk-cancel" colspan="2" />
94
<button name="update_followup" string="Update" icon="gtk-execute" colspan="2" type="object" />
95
<button name="switch_documents" string="Switch to documents view" icon="terp-gtk-jump-to-ltr" colspan="2" type="object" />
101
<record id="sale_order_line_followup_tree_view" model="ir.ui.view">
102
<field name="name">sale.order.line.followup.tree.view</field>
103
<field name="model">sale.order.line.followup</field>
104
<field name="type">tree</field>
105
<field name="arch" type="xml">
106
<tree string="Order follow up lines">
107
<field name="line_number" />
108
<field name="product_id" />
109
<field name="procure_method" />
110
<field name="po_cft" />
111
<field name="qty_ordered" />
112
<field name="uom_id" />
113
<field name="sourced_ok" />
114
<field name="tender_ids" />
115
<!--<field name="quotation_ids" />-->
116
<!--<field name="quotation_status" />-->
117
<field name="purchase_ids" />
118
<field name="purchase_status" />
119
<field name="incoming_ids" />
120
<field name="incoming_status" />
121
<field name="product_available" />
122
<field name="available_qty" />
123
<field name="outgoing_ids" />
124
<field name="outgoing_status" />
129
<record id="sale_order_line_followup_form_view" model="ir.ui.view">
130
<field name="name">sale.order.line.followup.form.view</field>
131
<field name="model">sale.order.line.followup</field>
132
<field name="type">form</field>
133
<field name="arch" type="xml">
134
<form string="Order follow up line">
135
<separator colspan="4" string="General Information" />
136
<field name="line_number" />
137
<field name="line_id" />
138
<field name="product_id" />
139
<field name="qty_ordered" />
140
<field name="procure_method" />
141
<field name="po_cft" />
142
<separator colspan="4" string="Associated documents" />
143
<field name="tender_ids" nolabel="1" string="Tenders" colspan="4">
144
<tree string="Tender" colors="green:state in ('done');grey: state in ('cancel')">
145
<field name="product_id" />
146
<field name="tender_id" />
148
<field name="product_uom" />
149
<field name="date_planned" />
150
<field name="state" />
151
<button name="go_to_tender_info" type="object" string="Go to tender form" icon="terp-stock_zoom" />
154
<!--<field name="quotation_ids" nolabel="1" colspan="4" string="Quotations">
155
<tree string="Request for Quotation"
156
colors="red: state in ('rfq_sent');blue: state in ('rfq_updated');green: state in ('done')">
157
<field name="name" />
158
<field name="order_type" />
159
<field name="date_order" />
160
<field name="partner_id" />
161
<field name="delivery_requested_date" />
162
<field name="amount_total" />
163
<field name="state" />
164
<button name="go_to_rfq_info" type="object" string="Go to RfQ form" icon="terp-stock_zoom" />
167
<field name="purchase_line_ids" nolabel="1" colspan="4" string="Purchase Orders">
168
<tree string="Purchase Orders"
169
colors="grey: state in ('cancel', 'done');green: state in ('approved');blue: state in ('confirmed')">
170
<field name="product_id" />
171
<field name="order_id" />
172
<field name="partner_id" />
173
<field name="order_type" string="Order type" />
174
<field name="product_qty" />
175
<field name="product_uom" />
176
<field name="date_planned" />
177
<field name="po_state" string="State" />
178
<button name="go_to_po_info" type="object" string="Go to purchase order form" icon="terp-stock_zoom" />
181
<field name="incoming_ids" nolabel="1" colspan="4" string="Incoming">
182
<tree string="Incoming Products"
183
colors="grey: state in ('cancel', 'done');green: state in ('available')">
184
<field name="name" />
185
<field name="picking_id" string="Shipment" />
186
<field name="order_type" />
187
<field name="location_id" string="Source Loc." />
188
<field name="location_dest_id" string="Dest. Loc." />
189
<field name="partner_id" string="Supplier" />
190
<field name="product_id" />
191
<field name="product_qty" />
192
<field name="product_uom" />
193
<field name="date_expected" string="Expected receipt" />
194
<field name="state" />
195
<button name="go_to_incoming_info" type="object" string="Go to incoming move form" icon="terp-stock_zoom" />
198
<field name="outgoing_ids" nolabel="1" colspan="4" string="Outgoing">
199
<tree string="Outgoing Products"
200
colors="grey: state in ('cancel', 'done');green: state in ('available')">
201
<field name="name" />
202
<field name="picking_id" string="Picking" />
203
<field name="order_type" />
204
<field name="location_id" string="Source Loc." />
205
<field name="location_dest_id" string="Dest. Loc." />
206
<field name="partner_id" string="Customer" />
207
<field name="product_id" />
208
<field name="product_qty" />
209
<field name="product_uom" />
210
<field name="date_expected" string="Expected delivery" />
211
<field name="state" />
212
<button name="go_to_outgoing_info" type="object" string="Go to outgoing move form" icon="terp-stock_zoom" />
219
<record id="sale_order_line_follow_choose_view" model="ir.ui.view">
220
<field name="name">sale.order.line.follow.choose.view</field>
221
<field name="model">sale.order.followup</field>
222
<field name="type">form</field>
223
<field name="arch" type="xml">
224
<form string="Choose the view type">
225
<separator colspan="4" string="Type of view" />
226
<field name="choose_type" colspan="4" required="1" />
227
<separator colspan="4" string="Actions" />
228
<button special="cancel" string="Cancel" icon="gtk-cancel" colspan="2" />
229
<button name="go_to_view" string="Go to view" icon="gtk-execute" colspan="2" type="object"/>
234
<record id="sale_order_followup_from_menu" model="ir.ui.view">
235
<field name="name">sale.order.followup.from.menu</field>
236
<field name="model">sale.order.followup.from.menu</field>
237
<field name="type">form</field>
238
<field name="arch" type="xml">
239
<form string="Choose a Sale Order">
240
<separator colspan="4" string="Select Sale Order" />
241
<field name="order_id"
242
attrs="{'readonly': [('cust_order_id', '!=', False)], 'required': [('cust_order_id', '=', False)]}"
243
on_change="change_order_id(order_id, cust_order_id, 'order_id')"/>
244
<field name="cust_order_id"
245
context="{'from_followup': True}"
246
attrs="{'readonly': [('order_id', '!=', False)], 'required': [('cust_order_id', '=', False)]}"
247
on_change="change_order_id(order_id, cust_order_id, 'cust_order_id')" />
248
<separator colspan="4" string="Actions" />
249
<button special="cancel" string="Cancel" colspan="2" icon="gtk-cancel" />
250
<button name="go_to_followup" string="Go to followup" icon="gtk-execute" colspan="2" type="object"/>
255
<record id="action_sale_order_followup_from_menu" model="ir.actions.act_window">
256
<field name="name">Sale Order Follow-Up</field>
257
<field name="res_model">sale.order.followup.from.menu</field>
258
<field name="view_type">form</field>
259
<field name="view_mode">form</field>
260
<field name="target">new</field>
263
<menuitem id="menuitem_sale_order_followup_from_menu"
264
action="action_sale_order_followup_from_menu"
265
parent="base.next_id_64" />