forked from OCA/stock-logistics-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
picking_dispatch_view.xml
207 lines (195 loc) · 8.37 KB
/
picking_dispatch_view.xml
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="picking_dispatch_form">
<field name="name">picking.dispatch.form</field>
<field name="model">picking.dispatch</field>
<field name="arch" type="xml">
<form string="Picking Dispatch" version="7.0">
<header>
<button name="action_assign" states="draft" string="Assign"
class="oe_highlight" type="object"/>
<button name="action_progress" states="assigned" string="Start"
class="oe_highlight" type="object"/>
<button name="action_done" states="progress" string="Done"
class="oe_highlight" type="object"/>
<button name="action_cancel" states="draft,assigned,progress" string="Cancel"
type="object"/>
<button name="action_assign_moves" string="Check Availability"
states="draft,assigned,progress" type="object"/>
<field name="state" widget="statusbar" statusbar_visible="draft,confirm"/>
</header>
<sheet>
<div class="oe_title">
<div class="oe_edit_only">
<label for="name" string="Picking Dispatch Name"/>
</div>
<h1>
<field name="name"/>
</h1>
</div>
<group>
<field name="picker_id"/>
<field name="date"/>
<field name="backorder_id"/>
</group>
<notebook colspan="4">
<page string="Stock Moves">
<field name="move_ids" nolabel="1" colspan='4' widget="many2many"
domain="[('dispatch_id','=',False), ('state','in',('confirmed','waiting','assigned'))]" />
</page>
<page string="Related Picking">
<field name="related_picking_ids" colspan="4" nolabel="1"/>
</page>
<page string='Notes'>
<field name='notes' colspan='4' nolabel='1'/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="picking_dispatch_tree">
<field name="name">picking.dispatch.tree</field>
<field name="model">picking.dispatch</field>
<field name="arch" type="xml">
<tree string="Picking Dispatch">
<field name="name" />
<field name="picker_id"/>
<field name="date"/>
<field name="state"/>
</tree>
</field>
</record>
<record id="picking_dispatch_search" model="ir.ui.view">
<field name="name">picking.dispatch.search</field>
<field name="model">picking.dispatch</field>
<field name="arch" type="xml">
<search string="Dispatch Picking Order">
<group>
<filter icon="terp-check" name="available" string="Ready to Process"
domain="[('state','=','assigned')]" help="Assigned and Valid Dispatch order" />
<filter icon="terp-camera_test" name="progress" string="In Progress"
domain="[('state','=','progress')]" help="Dispatch order In Progress" />
<filter icon="terp-dialog-close" name="done" string="Done"
domain="[('state','=','done')]" help="Dispatch order already processed"/>
<separator orientation="vertical" />
<filter icon="terp-accessories-archiver-minus" string="Back Orders"
domain="[('backorder_id', '!=', False)]" help="Is a Back Order"/>
<separator orientation="vertical"/>
<field name="name"/>
<field name="picker_id">
<filter domain="[('picker_id','=',uid)]" help="My Dispatch Order"
icon="terp-personal"/>
</field>
<field name="state"/>
<field name="date"/>
<field name="backorder_id" widget="selection"/>
</group>
<newline/>
<group expand="0" string="Group By...">
<filter string="picker_id" icon="terp-partner" domain="[]"
context="{'group_by':'picker_id'}"/>
<separator orientation="vertical" />
<filter icon="terp-stock_effects-object-colorize" name="state"
string="State" domain="[]" context="{'group_by':'state'}"/>
<separator orientation="vertical" />
<filter string="Order Date" icon="terp-go-month" domain="[]"
context="{'group_by':'date'}"/>
</group>
</search>
</field>
</record>
<record id="action_picking_dispatch_tree"
model="ir.actions.act_window">
<field name="name">Picking Dispatch</field>
<field name="res_model">picking.dispatch</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="picking_dispatch_search"/>
</record>
<menuitem action='action_picking_dispatch_tree'
parent='stock.menu_stock_warehouse_mgmt'
id='menu_action_picking_dispatch'
sequence='10'/>
<!-- Stock picking : add dispatch infos -->
<record id="view_picking_form" model="ir.ui.view">
<field name="name">stock.picking.form.dispatch</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<page string="Additional Info" position="after">
<page string="Related Dispatch">
<field name="related_dispatch_ids" nolabel="1" colspan="4"/>
</page>
</page>
</field>
</record>
<!-- Stock picking : add dispatch search -->
<record id="view_picking_internal_search" model="ir.ui.view">
<field name="name">stock.picking.search.related_dispatch_ids</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_internal_search"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="related_dispatch_ids"/>
</field>
</field>
</record>
<!-- Product View: add description_warehouse -->
<record id="product_normal_form_view" model="ir.ui.view">
<field name="name">product.normal.form</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<field name="description_purchase"
position="after">
<separator string="Warehouse Description"/>
<field colspan="4" name="description_warehouse" nolabel="1"/>
</field>
</field>
</record>
<!-- stock.move : display picking.dispatch and allow filtering -->
<record id="view_move_tree_receipt_picking" model="ir.ui.view">
<field name="name">stock.move.tree2</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_tree_receipt_picking"/>
<field name="arch" type="xml">
<field name="date" position="after">
<field name="dispatch_id" />
</field>
</field>
</record>
<record id="view_move_form" model="ir.ui.view">
<field name="name">stock.move.form</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_form"/>
<field name="arch" type="xml">
<field name="picking_id" position="after">
<field name="dispatch_id"/>
</field>
</field>
</record>
<record id="view_move_search" model="ir.ui.view">
<field name="name">stock.move.search</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_search"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="dispatch_id" widget="selection"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="view_company_form_inherit">
<field name="name">res.company.form.inherit</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Pickings" position="inside">
<field name="default_picker_id" colspan ="4"/>
</page>
</notebook>
</field>
</record>
</data>
</openerp>