1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
<?xml version="1.0" encoding="utf-8" ?>
<openerp>
<data>
<record id="action_purchase_order_follow_up" model="ir.actions.server">
<field name="name">Order Follow Up</field>
<field name="model_id" ref="model_purchase_order_followup"/>
<field name="state">code</field>
<field name="code">action = obj.start_order_followup(context=context)</field>
</record>
<record id="ir_open_purchase_order_follow_up" model="ir.values">
<field name="key2">client_action_multi</field>
<field name="model">purchase.order</field>
<field name="name">Order Follow Up</field>
<field eval="'ir.actions.server,%d'%action_purchase_order_follow_up" name="value"/>
<field eval="True" name="object"/>
</record>
<record id="purchase_order_followup_form_view" model="ir.ui.view">
<field name="name">purchase.order.followup.form.view</field>
<field name="model">purchase.order.followup</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Purchase Order Followup">
<field name="order_id" readonly="1" />
<field name="supplier_ref" readonly="1" />
<field name="partner_id" readonly="1" />
<field name="order_type" readonly="1" />
<field name="priority" readonly="1" />
<field name="categ" readonly="1" />
<!--<field name="delivery_requested_date" readonly="1" />
<field name="delivery_confirmed_date" readonly="1" />-->
<field name="line_ids" mode="tree" readonly="1" colspan="4" nolabel="1">
<tree string="Followup lines" colors="orange:return_move==True">
<field name="line_name" />
<field name="line_product_id" />
<field name="line_product_qty" />
<field name="line_uom_id" />
<field name="line_confirmed_date" />
<field name="line_shipped_rate" widget="progressbar" />
<field name="picking_id" />
<button name="go_to_incoming" type="object" string="View Incoming shipment" icon="terp-stock_zoom" attrs="{'invisible': [('picking_id', '!=', False)]}" />
<field name="move_product_id" />
<field name="move_product_qty" />
<field name="move_uom_id" />
<field name="move_delivery_date" />
<field name="move_state" />
<field name="return_move" invisible="1" />
</tree>
</field>
<button name="close_view" type="object" string="Close" icon="gtk-cancel" colspan="2" />
<button name="update_view" type="object" string="Update" icon="gtk-execute" colspan="2" />
<newline />
<button name="export_xls" string="Export Excel" icon="gtk-execute" colspan="2" type="object" context="{'export':True}" />
<button name="export_pdf" string="Export PDF" icon="gtk-execute" colspan="2" type="object" context="{'export':True}" />
</form>
</field>
</record>
<record id="purchase_order_followup_split_form_view" model="ir.ui.view">
<field name="name">purchase.order.followup.split.form.view</field>
<field name="model">purchase.order.followup</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Purchase Order Followup">
<field name="order_id" readonly="1" />
<field name="supplier_ref" readonly="1" />
<field name="partner_id" readonly="1" />
<field name="order_type" readonly="1" />
<field name="priority" readonly="1" />
<field name="categ" readonly="1" />
<!--<field name="delivery_requested_date" readonly="1" />
<field name="delivery_confirmed_date" readonly="1" />-->
<field name="line_ids" mode="tree" readonly="1" colspan="4" nolabel="1">
<tree string="Followup lines" colors="orange:return_move==True">
<field name="order_id" />
<field name="line_name" />
<field name="line_product_id" />
<field name="line_product_qty" />
<field name="line_uom_id" />
<field name="line_confirmed_date" />
<field name="line_shipped_rate" widget="progressbar" />
<field name="picking_id" />
<button name="go_to_incoming" type="object" string="View Incoming shipment" icon="terp-stock_zoom" attrs="{'invisible': [('picking_id', '!=', False)]}" />
<field name="move_product_id" />
<field name="move_product_qty" />
<field name="move_uom_id" />
<field name="move_delivery_date" />
<field name="move_state" />
<field name="return_move" invisible="1" />
</tree>
</field>
<button name="close_view" type="object" string="Close" icon="gtk-cancel" colspan="2" />
<button name="update_view" type="object" string="Update" icon="gtk-execute" colspan="2" />
<newline />
<button name="export_xls" string="Export Excel" icon="gtk-execute" colspan="2" type="object" context="{'export':True}" />
<button name="export_pdf" string="Export PDF" icon="gtk-execute" colspan="2" type="object" context="{'export':True}" />
</form>
</field>
</record>
<record id="purchase_order_followup_from_menu" model="ir.ui.view">
<field name="name">purchase.order.followup.from.menu</field>
<field name="model">purchase.order.followup.from.menu</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Choose a Purchase Order">
<separator colspan="4" string="Select Purchase Order" />
<field name="order_id"
attrs="{'readonly': ['|', ('cust_order_id', '!=', False), ('incoming_id', '!=', False), ('cust_order_id2', '!=', False)], 'required': [('cust_order_id', '=', False), ('incoming_id', '=', False), ('cust_order_id2', '=', False)]}"
context="{'active_test': False}"
domain="[('rfq_ok', '=', False), ('state', 'in', ['sourced', 'confirmed_wait', 'split', 'approved', 'done', 'except_picking', 'except_invoice'])]"
on_change="change_order_id(order_id, cust_order_id, incoming_id, cust_order_id2, 'order_id')"/>
<field name="cust_order_id"
context="{'from_followup': True, 'active_test': False}"
attrs="{'readonly': ['|', ('order_id', '!=', False), ('incoming_id', '!=', False), ('cust_order_id2', '!=', False)], 'required': [('order_id', '=', False), ('incoming_id', '=', False), ('cust_order_id2', '=', False)]}"
domain="[('rfq_ok', '=', False), ('state', 'in', ['sourced', 'confirmed_wait', 'split', 'approved', 'done', 'except_picking', 'except_invoice'])]"
on_change="change_order_id(order_id, cust_order_id, incoming_id, cust_order_id2, 'cust_order_id')" />
<field name="incoming_id"
context="{'from_followup': True, 'wh_dashboard': True, 'pick_type': 'incoming'}"
attrs="{'readonly': ['|', ('order_id', '!=', False), ('cust_order_id', '!=', False), ('cust_order_id2', '!=', False)], 'required': [('cust_order_id', '=', False), ('order_id', '=', False), ('cust_order_id2', '=', False)]}"
domain="[('purchase_id', '!=', False), ('type', '=', 'in')]"
on_change="change_order_id(order_id, cust_order_id, incoming_id, cust_order_id2, 'incoming_id')" />
<field name="cust_order_id2"
context="{'from_followup2': True, 'active_test': False}"
attrs="{'readonly': ['|', ('cust_order_id', '!=', False), ('order_id', '!=', False), ('incoming_id', '!=', False)], 'required': [('cust_order_id', '=', False), ('order_id', '=', False), ('incoming_id', '=', False)]}"
domain="[('rfq_ok', '=', False), ('state', 'in', ['sourced', 'confirmed_wait', 'split', 'approved', 'done', 'except_picking', 'except_invoice'])]"
on_change="change_order_id(order_id, cust_order_id, incoming_id, cust_order_id2, 'cust_order_id2')" />
<separator colspan="4" string="Actions" />
<button special="cancel" string="Cancel" colspan="2" icon="gtk-cancel" />
<button name="go_to_followup" string="Go to followup" icon="gtk-execute" colspan="2" type="object"/>
</form>
</field>
</record>
<record id="action_purchase_order_followup_from_menu" model="ir.actions.act_window">
<field name="name">Purchase Order Follow-Up</field>
<field name="res_model">purchase.order.followup.from.menu</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<menuitem id="menuitem_purchase_order_followup_from_menu"
action="action_purchase_order_followup_from_menu"
sequence="1"
parent="base.next_id_73" />
</data>
</openerp>
|