40
40
<field name="line_confirmed_date" />
41
41
<field name="line_shipped_rate" widget="progressbar" />
42
42
<field name="picking_id" />
43
<button name="go_to_incoming" type="object" string="View Incoming shipment" icon="terp-stock_zoom" attrs="{'invisible': [('picking_id', '!=', False)]}" />
44
<field name="move_product_id" />
45
<field name="move_product_qty" />
46
<field name="move_uom_id" />
47
<field name="move_delivery_date" />
48
<field name="move_state" />
49
<field name="return_move" invisible="1" />
52
<button name="close_view" type="object" string="Close" icon="gtk-cancel" colspan="2" />
53
<button name="update_view" type="object" string="Update" icon="gtk-execute" colspan="2" />
55
<button name="export_xls" string="Export Excel" icon="gtk-execute" colspan="2" type="object" context="{'export':True}" />
56
<button name="export_pdf" string="Export PDF" icon="gtk-execute" colspan="2" type="object" context="{'export':True}" />
61
<record id="purchase_order_followup_split_form_view" model="ir.ui.view">
62
<field name="name">purchase.order.followup.split.form.view</field>
63
<field name="model">purchase.order.followup</field>
64
<field name="type">form</field>
65
<field name="arch" type="xml">
66
<form string="Purchase Order Followup">
67
<field name="order_id" readonly="1" />
68
<field name="supplier_ref" readonly="1" />
69
<field name="partner_id" readonly="1" />
70
<field name="order_type" readonly="1" />
71
<field name="priority" readonly="1" />
72
<field name="categ" readonly="1" />
73
<!--<field name="delivery_requested_date" readonly="1" />
74
<field name="delivery_confirmed_date" readonly="1" />-->
75
<field name="line_ids" mode="tree" readonly="1" colspan="4" nolabel="1">
76
<tree string="Followup lines" colors="orange:return_move==True">
77
<field name="order_id" />
78
<field name="line_name" />
79
<field name="line_product_id" />
80
<field name="line_product_qty" />
81
<field name="line_uom_id" />
82
<field name="line_confirmed_date" />
83
<field name="line_shipped_rate" widget="progressbar" />
84
<field name="picking_id" />
85
<button name="go_to_incoming" type="object" string="View Incoming shipment" icon="terp-stock_zoom" attrs="{'invisible': [('picking_id', '!=', False)]}" />
86
<field name="move_product_id" />
87
<field name="move_product_qty" />
88
<field name="move_uom_id" />
89
<field name="move_delivery_date" />
90
<field name="move_state" />
91
<field name="return_move" invisible="1" />
94
<button name="close_view" type="object" string="Close" icon="gtk-cancel" colspan="2" />
95
<button name="update_view" type="object" string="Update" icon="gtk-execute" colspan="2" />
97
<button name="export_xls" string="Export Excel" icon="gtk-execute" colspan="2" type="object" context="{'export':True}" />
98
<button name="export_pdf" string="Export PDF" icon="gtk-execute" colspan="2" type="object" context="{'export':True}" />
43
<button name="go_to_incoming" type="object" string="View Incoming shipment" icon="terp-stock_zoom" />
44
<field name="move_product_id" />
45
<field name="move_product_qty" />
46
<field name="move_uom_id" />
47
<field name="move_delivery_date" />
48
<field name="move_state" />
49
<field name="return_move" invisible="1" />
52
<button name="close_view" type="object" string="Close" icon="gtk-cancel" colspan="2" />
53
<button name="update_view" type="object" string="Update" icon="gtk-execute" colspan="2" />
108
63
<form string="Choose a Purchase Order">
109
64
<separator colspan="4" string="Select Purchase Order" />
110
65
<field name="order_id"
111
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)]}"
112
context="{'active_test': False}"
113
domain="[('rfq_ok', '=', False), ('state', 'in', ['sourced', 'confirmed_wait', 'split', 'approved', 'done', 'except_picking', 'except_invoice'])]"
114
on_change="change_order_id(order_id, cust_order_id, incoming_id, cust_order_id2, 'order_id')"/>
66
attrs="{'readonly': ['|', ('cust_order_id', '!=', False), ('incoming_id', '!=', False)], 'required': [('cust_order_id', '=', False), ('incoming_id', '=', False)]}"
67
domain="[('rfq_ok', '=', False), ('state', 'in', ['approved', 'done', 'except_picking', 'except_invoice'])]"
68
on_change="change_order_id(order_id, cust_order_id, incoming_id, 'order_id')"/>
115
69
<field name="cust_order_id"
116
context="{'from_followup': True, 'active_test': False}"
117
attrs="{'readonly': ['|', ('order_id', '!=', False), ('incoming_id', '!=', False), ('cust_order_id2', '!=', False)], 'required': [('order_id', '=', False), ('incoming_id', '=', False), ('cust_order_id2', '=', False)]}"
118
domain="[('rfq_ok', '=', False), ('state', 'in', ['sourced', 'confirmed_wait', 'split', 'approved', 'done', 'except_picking', 'except_invoice'])]"
119
on_change="change_order_id(order_id, cust_order_id, incoming_id, cust_order_id2, 'cust_order_id')" />
70
context="{'from_followup': True}"
71
attrs="{'readonly': ['|', ('order_id', '!=', False), ('incoming_id', '!=', False)], 'required': [('order_id', '=', False), ('incoming_id', '=', False)]}"
72
domain="[('rfq_ok', '=', False), ('state', 'in', ['approved', 'done', 'except_picking', 'except_invoice'])]"
73
on_change="change_order_id(order_id, cust_order_id, incoming_id, 'cust_order_id')" />
120
74
<field name="incoming_id"
121
context="{'from_followup': True, 'wh_dashboard': True, 'pick_type': 'incoming'}"
122
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)]}"
123
domain="[('purchase_id', '!=', False), ('type', '=', 'in')]"
124
on_change="change_order_id(order_id, cust_order_id, incoming_id, cust_order_id2, 'incoming_id')" />
125
<field name="cust_order_id2"
126
context="{'from_followup2': True, 'active_test': False}"
127
attrs="{'readonly': ['|', ('cust_order_id', '!=', False), ('order_id', '!=', False), ('incoming_id', '!=', False)], 'required': [('cust_order_id', '=', False), ('order_id', '=', False), ('incoming_id', '=', False)]}"
128
domain="[('rfq_ok', '=', False), ('state', 'in', ['sourced', 'confirmed_wait', 'split', 'approved', 'done', 'except_picking', 'except_invoice'])]"
129
on_change="change_order_id(order_id, cust_order_id, incoming_id, cust_order_id2, 'cust_order_id2')" />
75
context="{'from_followup': True}"
76
attrs="{'readonly': ['|', ('order_id', '!=', False), ('cust_order_id', '!=', False)], 'required': [('cust_order_id', '=', False), ('order_id', '=', False)]}"
77
domain="[('purchase_id', '!=', False)]"
78
on_change="change_order_id(order_id, cust_order_id, incoming_id, 'incoming_id')" />
130
79
<separator colspan="4" string="Actions" />
131
80
<button special="cancel" string="Cancel" colspan="2" icon="gtk-cancel" />
132
81
<button name="go_to_followup" string="Go to followup" icon="gtk-execute" colspan="2" type="object"/>