forked from OCA/stock-logistics-warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stock_view.xml
executable file
·67 lines (60 loc) · 3.45 KB
/
stock_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_inventory_tree" model="ir.ui.view">
<field name="name">stock.inventory.tree</field>
<field name="model">stock.inventory</field>
<field name="type">tree</field>
<field name="inherit_id" ref="stock.view_inventory_tree"/>
<field name="arch" type="xml">
<field name="state" position="after">
<field name="type" invisible="1"/>
</field>
</field>
</record>
<record id="view_inventory_form" model="ir.ui.view">
<field name="name">stock.inventory.form</field>
<field name="model">stock.inventory</field>
<field name="type">form</field>
<field name="inherit_id" ref="stock.view_inventory_form"/>
<field name="arch" type="xml">
<field name="company_id" position="after">
<field name="type" invisible="1"/>
<group colspan="4"><!-- attrs="{'invisible':[('type','=','normal')]}">-->
<field name="location_id" required="1"/>
<field name="location_dest_id" attrs="{'required':[('type','=','move')],'invisible':[('type','=','normal')]}"/>
<button name="fill_inventory" string="Start Acquisition" type="object" icon="gtk-apply" colspan="4" attrs="{'invisible':['|',('type','=','move'),('state','!=','draft')]}"/>
<button name="fill_inventory" string="Get Stock" type="object" icon="gtk-apply" colspan="4" attrs="{'invisible':['|',('type','=','normal'),('state','!=','draft')]}" context="{'type':'move'}"/>
</group>
</field>
<button name="action_confirm" position="replace">
<button name="action_confirm" string="Confirm Inventory" type="object" icon="gtk-apply" attrs="{'invisible':['|',('type','=','move'),('state','!=','draft')]}"/>
<button name="move_stock" string="Move Stock" type="object" icon="gtk-apply" attrs="{'invisible':['|',('type','=','normal'),('state','!=','draft')]}"/>
</button>
<button name="action_done" position="replace">
<button name="action_done" string="Validate Inventory" attrs="{'invisible':['|',('type','=','move'),('state','!=','confirm')]}" type="object" icon="gtk-jump-to"/>
<button name="action_done" string="Validate Move" attrs="{'invisible':['|',('type','=','normal'),('state','!=','confirm')]}" type="object" icon="gtk-jump-to"/>
</button>
</field>
</record>
<record id="stock.action_inventory_form" model="ir.actions.act_window">
<field name="context">{'full':'1', 'type':'normal', 'default_type': 'normal'}</field>
<field name="domain">[('type', '=', 'normal')]</field>
</record>
<record id="stock.action_inventory_form_draft" model="ir.actions.act_window">
<field name="domain">[('state','=','draft'), ('type', '=', 'normal')]</field>
</record>
<record id="action_move_stock_form" model="ir.actions.act_window">
<field name="name">Move stock</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">stock.inventory</field>
<field name="view_type">form</field>
<field name="view_id" ref="stock.view_inventory_tree"/>
<field name="context">{'full':'1', 'type':'move', 'default_type': 'move'}</field>
<field name="domain">[('type', '=', 'move')]</field>
<field name="search_view_id" ref="stock.view_inventory_filter" />
<field name="help">You can use this to move a stock from a location to an other one.</field>
</record>
<menuitem action="action_move_stock_form" id="menu_action_move_stock_form" parent="stock.menu_stock_inventory_control" sequence="30"/>
</data>
</openerp>