forked from OCA/stock-logistics-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstock_split_picking.xml
68 lines (67 loc) · 2.91 KB
/
stock_split_picking.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
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_stock_split_picking" model="ir.ui.view">
<field name="name">stock.split.picking.form</field>
<field name="model">stock.split.picking</field>
<field name="arch" type="xml">
<form>
<group>
<field name="mode" />
<field name="picking_ids" invisible="True" />
<field
name="move_ids"
invisible="mode != 'selection'"
required="mode == 'selection'"
domain="[('picking_id', 'in', picking_ids)]"
>
<tree create="true" edit="true" delete="true">
<field name="product_id" />
<field name="product_uom_qty" />
<field
name="product_uom"
options="{'no_open': True, 'no_create': True}"
string="Unit of Measure"
groups="uom.group_uom"
/>
<field name="picking_id" />
<field
name="location_id"
options="{'no_create': True}"
groups="stock.group_stock_multi_locations"
/>
<field
name="location_dest_id"
options="{'no_create': True}"
groups="stock.group_stock_multi_locations"
/>
<field name="create_date" groups="base.group_no_one" />
<field
name="date"
string="Date"
groups="base.group_no_one"
/>
<field name="date_deadline" />
<field name="state" />
</tree>
</field>
</group>
<footer>
<button
name="action_apply"
class="btn btn-primary"
string="Split"
type="object"
/>
or
<button special="cancel" class="btn btn-secondary" string="Cancel" />
</footer>
</form>
</field>
</record>
<record id="action_stock_split_picking" model="ir.actions.act_window">
<field name="name">Split pickings</field>
<field name="res_model">stock.split.picking</field>
<field name="view_id" ref="view_stock_split_picking" />
<field name="target">new</field>
</record>
</odoo>