This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
move.xml
180 lines (169 loc) · 8.33 KB
/
move.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
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="move_view_form">
<field name="model">stock.move</field>
<field name="type">form</field>
<field name="name">move_form</field>
</record>
<record model="ir.ui.view" id="move_view_tree">
<field name="model">stock.move</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="name">move_tree</field>
</record>
<record model="ir.ui.view" id="move_view_tree_simple">
<field name="model">stock.move</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">move_tree_simple</field>
</record>
<record model="ir.ui.view" id="move_view_list_shipment_in">
<field name="model">stock.move</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">move_list_shipment_in</field>
</record>
<record model="ir.ui.view" id="move_view_list_shipment">
<field name="model">stock.move</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">move_list_shipment</field>
</record>
<record model="ir.action.act_window" id="act_move_form">
<field name="name">Moves</field>
<field name="res_model">stock.move</field>
<field name="search_value"
eval="[('create_date', '>=', DateTime(hour=0, minute=0, second=0, microsecond=0, delta_years=-1))]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_move_form_view1">
<field name="sequence" eval="1"/>
<field name="view" ref="move_view_tree"/>
<field name="act_window" ref="act_move_form"/>
</record>
<record model="ir.action.act_window.view" id="act_move_form_view2">
<field name="sequence" eval="2"/>
<field name="view" ref="move_view_form"/>
<field name="act_window" ref="act_move_form"/>
</record>
<record model="ir.action.act_window.domain" id="act_move_form_domain_all">
<field name="name">All</field>
<field name="sequence" eval="10"/>
<field name="domain"></field>
<field name="act_window" ref="act_move_form"/>
</record>
<record model="ir.action.act_window.domain" id="act_move_form_domain_from_supplier">
<field name="name">From Suppliers</field>
<field name="sequence" eval="20"/>
<field name="domain"
eval="[('from_location.type', '=', 'supplier')]" pyson="1"/>
<field name="act_window" ref="act_move_form"/>
</record>
<record model="ir.action.act_window.domain" id="act_move_form_domain_from_supplier_waiting">
<field name="name">From Suppliers Waiting</field>
<field name="sequence" eval="30"/>
<field name="domain"
eval="[('from_location.type', '=', 'supplier'), ('state', '=', 'draft'), ('shipment', '=', None)]"
pyson="1"/>
<field name="count" eval="True"/>
<field name="act_window" ref="act_move_form"/>
</record>
<record model="ir.action.act_window.domain" id="act_move_form_domain_to_customer">
<field name="name">To Customers</field>
<field name="sequence" eval="40"/>
<field name="domain"
eval="[('to_location.type', '=', 'customer')]"
pyson="1"/>
<field name="act_window" ref="act_move_form"/>
</record>
<menuitem
parent="menu_stock"
action="act_move_form"
sequence="50"
id="menu_move_form"/>
<record model="ir.ui.menu-res.group"
id="menu_move_form_group_stock">
<field name="menu" ref="menu_move_form"/>
<field name="group" ref="group_stock_admin"/>
</record>
<record model="ir.rule.group" id="rule_group_move_companies">
<field name="name">User in companies</field>
<field name="model" search="[('model', '=', 'stock.move')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_move_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_move_companies"/>
</record>
<record model="ir.model.access" id="access_move">
<field name="model" search="[('model', '=', 'stock.move')]"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_move_group_stock">
<field name="model" search="[('model', '=', 'stock.move')]"/>
<field name="group" ref="group_stock"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.button" id="move_cancel_button">
<field name="name">cancel</field>
<field name="string">Cancel</field>
<field name="confirm">Are you sure you want to cancel the move?</field>
<field name="model" search="[('model', '=', 'stock.move')]"/>
</record>
<record model="ir.model.button" id="move_draft_button">
<field name="name">draft</field>
<field name="string">Reset to Draft</field>
<field name="model" search="[('model', '=', 'stock.move')]"/>
</record>
<record model="ir.model.button" id="move_do_button">
<field name="name">do</field>
<field name="string">Do</field>
<field name="confirm">Are you sure you want to complete the move?</field>
<field name="model" search="[('model', '=', 'stock.move')]"/>
</record>
<record model="ir.action.act_window" id="act_product_moves">
<field name="name">Stock Moves</field>
<field name="res_model">stock.move</field>
<field
name="domain"
eval="[If(Eval('active_ids', []) == [Eval('active_id')], (If(Eval('active_model') == 'product.template', 'product.template', 'product'), '=', Eval('active_id', -1)), (If(Eval('active_model') == 'product.template', 'product.template', 'product'), 'in', Eval('active_ids', [])))]"
pyson="1"/>
<field name="order" eval="[('effective_date', 'DESC NULLS FIRST')]" pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_product_moves_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="move_view_tree"/>
<field name="act_window" ref="act_product_moves"/>
</record>
<record model="ir.action.act_window.view" id="act_product_moves_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="move_view_form"/>
<field name="act_window" ref="act_product_moves"/>
</record>
<record model="ir.action.keyword" id="act_product_moves_keyword1">
<field name="keyword">form_relate</field>
<field name="model">product.product,-1</field>
<field name="action" ref="act_product_moves"/>
</record>
<record model="ir.action.keyword" id="act_product_moves_keyword2">
<field name="keyword">form_relate</field>
<field name="model">product.template,-1</field>
<field name="action" ref="act_product_moves"/>
</record>
<record model="ir.action-res.group" id="act_product_moves-group_stock">
<field name="action" ref="act_product_moves"/>
<field name="group" ref="group_stock"/>
</record>
</data>
</tryton>