102
102
<form string="Choose a Purchase Order">
103
103
<separator colspan="4" string="Select Purchase Order" />
104
104
<field name="order_id"
105
attrs="{'readonly': ['|', ('cust_order_id', '!=', False), ('incoming_id', '!=', False)], 'required': [('cust_order_id', '=', False), ('incoming_id', '=', False)]}"
105
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)]}"
106
106
context="{'active_test': False}"
107
107
domain="[('rfq_ok', '=', False), ('state', 'in', ['sourced', 'confirmed_wait', 'split', 'approved', 'done', 'except_picking', 'except_invoice'])]"
108
on_change="change_order_id(order_id, cust_order_id, incoming_id, 'order_id')"/>
108
on_change="change_order_id(order_id, cust_order_id, incoming_id, cust_order_id2, 'order_id')"/>
109
109
<field name="cust_order_id"
110
110
context="{'from_followup': True, 'active_test': False}"
111
attrs="{'readonly': ['|', ('order_id', '!=', False), ('incoming_id', '!=', False)], 'required': [('order_id', '=', False), ('incoming_id', '=', False)]}"
111
attrs="{'readonly': ['|', ('order_id', '!=', False), ('incoming_id', '!=', False), ('cust_order_id2', '!=', False)], 'required': [('order_id', '=', False), ('incoming_id', '=', False), ('cust_order_id2', '=', False)]}"
112
112
domain="[('rfq_ok', '=', False), ('state', 'in', ['sourced', 'confirmed_wait', 'split', 'approved', 'done', 'except_picking', 'except_invoice'])]"
113
on_change="change_order_id(order_id, cust_order_id, incoming_id, 'cust_order_id')" />
113
on_change="change_order_id(order_id, cust_order_id, incoming_id, cust_order_id2, 'cust_order_id')" />
114
114
<field name="incoming_id"
115
115
context="{'from_followup': True, 'wh_dashboard': True, 'pick_type': 'incoming'}"
116
attrs="{'readonly': ['|', ('order_id', '!=', False), ('cust_order_id', '!=', False)], 'required': [('cust_order_id', '=', False), ('order_id', '=', False)]}"
116
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)]}"
117
117
domain="[('purchase_id', '!=', False), ('type', '=', 'in')]"
118
on_change="change_order_id(order_id, cust_order_id, incoming_id, 'incoming_id')" />
118
on_change="change_order_id(order_id, cust_order_id, incoming_id, cust_order_id2, 'incoming_id')" />
119
<field name="cust_order_id2"
120
context="{'from_followup2': True, 'active_test': False}"
121
attrs="{'readonly': ['|', ('cust_order_id', '!=', False), ('order_id', '!=', False), ('incoming_id', '!=', False)], 'required': [('cust_order_id', '=', False), ('order_id', '=', False), ('incoming_id', '=', False)]}"
122
domain="[('rfq_ok', '=', False), ('state', 'in', ['sourced', 'confirmed_wait', 'split', 'approved', 'done', 'except_picking', 'except_invoice'])]"
123
on_change="change_order_id(order_id, cust_order_id, incoming_id, cust_order_id2, 'cust_order_id2')" />
119
124
<separator colspan="4" string="Actions" />
120
125
<button special="cancel" string="Cancel" colspan="2" icon="gtk-cancel" />
121
126
<button name="go_to_followup" string="Go to followup" icon="gtk-execute" colspan="2" type="object"/>