forked from trytonus/trytond-sale-channel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
channel.xml
245 lines (229 loc) · 11.4 KB
/
channel.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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<?xml version="1.0"?>
<tryton>
<data>
<record model="ir.ui.view" id="sale_channel_view_tree">
<field name="model">sale.channel</field>
<field name="type">tree</field>
<field name="name">sale_channel_tree</field>
</record>
<record model="ir.ui.view" id="sale_channel_view_form">
<field name="model">sale.channel</field>
<field name="type">form</field>
<field name="name">sale_channel_form</field>
</record>
<!--Carriers-->
<record model="ir.ui.view" id="carrier_view_form">
<field name="model">sale.channel.carrier</field>
<field name="type">form</field>
<field name="name">channel_carrier_form</field>
</record>
<record model="ir.ui.view" id="carrier_view_tree">
<field name="model">sale.channel.carrier</field>
<field name="type">tree</field>
<field name="name">channel_carrier_tree</field>
</record>
<!--Channel Exception-->
<record model="ir.ui.view" id="channel_exception_form_view">
<field name="model">channel.exception</field>
<field name="type">form</field>
<field name="name">channel_exception_form</field>
</record>
<record model="ir.ui.view" id="channel_exception_tree_view">
<field name="model">channel.exception</field>
<field name="type">tree</field>
<field name="name">channel_exception_tree</field>
</record>
<record model="ir.action.act_window" id="act_sale_channel_form">
<field name="name">Channels</field>
<field name="res_model">sale.channel</field>
<field name="context" eval="{'active_test': False}" pyson="1"/>
</record>
<record model="ir.action.act_window.domain" id="action_sale_channel_view_domain_active">
<field name="name">Active</field>
<field name="sequence" eval="10"/>
<field name="domain" eval="[('active', '=', True)]" pyson="1"/>
<field name="act_window" ref="act_sale_channel_form"/>
</record>
<record model="ir.action.act_window.domain" id="action_sale_channel_view_domain_disabled">
<field name="name">Disabled</field>
<field name="sequence" eval="10"/>
<field name="domain" eval="[('active', '=', False)]" pyson="1"/>
<field name="act_window" ref="act_sale_channel_form"/>
</record>
<record model="ir.action.act_window.view" id="act_sale_channel_form_view_1">
<field name="sequence" eval="10" />
<field name="view" ref="sale_channel_view_tree" />
<field name="act_window" ref="act_sale_channel_form" />
</record>
<record model="ir.action.act_window.view" id="act_sale_channel_form_view_2">
<field name="sequence" eval="10" />
<field name="view" ref="sale_channel_view_form" />
<field name="act_window" ref="act_sale_channel_form" />
</record>
<menuitem parent="sale.menu_configuration" action="act_sale_channel_form"
id="menu_sale_channel" icon="tryton-list" />
<record model="ir.action.act_window" id="act_listed_product">
<field name="name">Listed Products</field>
<field name="res_model">product.product</field>
<field name="domain" eval="[('channel_listings.channel', 'in', Eval('active_ids'))]" pyson="1"/>
</record>
<record model="ir.action.keyword"
id="act_open_sale_channel_keyword">
<field name="keyword">form_relate</field>
<field name="model">sale.channel,-1</field>
<field name="action" ref="act_listed_product"/>
</record>
<record model="ir.action.act_window" id="act_sale">
<field name="name">Orders</field>
<field name="res_model">sale.sale</field>
<field name="domain" eval="[('channel', '=', Eval('active_id'))]" pyson="1"/>
</record>
<record model="ir.action.keyword" id="act_open_sale_keyword">
<field name="keyword">form_relate</field>
<field name="model">sale.channel,-1</field>
<field name="action" ref="act_sale"/>
</record>
<!-- Access -->
<record model="ir.model.access" id="access_sale_channel">
<field name="model" search="[('model', '=', 'sale.channel')]"/>
<field name="perm_read" eval="True"/>
<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_sale_channel_admin">
<field name="model" search="[('model', '=', 'sale.channel')]"/>
<field name="group" ref="sale.group_sale_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_channel_exception">
<field name="model" search="[('model', '=', 'channel.exception')]"/>
<field name="group" ref="sale.group_sale"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_channel_exception_non_sale_user">
<field name="model" search="[('model', '=', 'channel.exception')]"/>
<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>
<!-- Sales view -->
<record model="ir.action.act_window" id="act_sale_form_all">
<field name="name">Sales</field>
<field name="res_model">sale.sale</field>
</record>
<record model="ir.action.act_window.view" id="act_sale_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="sale.sale_view_tree"/>
<field name="act_window" ref="act_sale_form_all"/>
</record>
<record model="ir.action.act_window.view" id="act_sale_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="sale.sale_view_form"/>
<field name="act_window" ref="act_sale_form_all"/>
</record>
<!--Order states-->
<record model="ir.ui.view" id="order_states_view_form">
<field name="model">sale.channel.order_state</field>
<field name="type">form</field>
<field name="name">order_states_form</field>
</record>
<record model="ir.ui.view" id="order_states_view_tree">
<field name="model">sale.channel.order_state</field>
<field name="type">tree</field>
<field name="name">order_states_tree</field>
</record>
<!--Cron To Import Orders-->
<record model="ir.cron" id="cron_import_orders">
<field name="name">Import Orders</field>
<field name="request_user" ref="res.user_admin"/>
<field name="user" ref="user_trigger_orders"/>
<field name="active" eval="True"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="number_calls">-1</field>
<field name="repeat_missed" eval="False"/>
<field name="model">sale.channel</field>
<field name="function">import_orders_using_cron</field>
</record>
<!--Cron To update Orders-->
<record model="ir.cron" id="cron_update_orders">
<field name="name">Update Orders</field>
<field name="request_user" ref="res.user_admin"/>
<field name="user" ref="user_trigger_orders"/>
<field name="active" eval="True"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="number_calls">-1</field>
<field name="repeat_missed" eval="False"/>
<field name="model">sale.channel</field>
<field name="function">update_order_status_using_cron</field>
</record>
<!-- Cron To Export Product Prices-->
<record model="ir.cron" id="ir_cron_export_product_prices">
<field name="name">Export Product Prices</field>
<field name="request_user" ref="res.user_admin"/>
<field name="user" ref="user_trigger_orders"/>
<field name="active" eval="True"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="number_calls">-1</field>
<field name="model">sale.channel</field>
<field name="function">export_product_prices_using_cron</field>
</record>
<!-- Cron To Export Product inventory-->
<record model="ir.cron" id="ir_cron_export_inventory">
<field name="name">Export Inventory</field>
<field name="request_user" ref="res.user_admin"/>
<field name="user" ref="user_trigger_orders"/>
<field name="active" eval="False"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="number_calls">-1</field>
<field name="model">sale.channel</field>
<field name="function">export_inventory_from_cron</field>
</record>
<!-- Cron to Export Order Status-->
<record model="ir.cron" id="cron_export_orders">
<field name="name">Export Orders Status</field>
<field name="request_user" ref="res.user_admin"/>
<field name="user" ref="user_trigger_orders"/>
<field name="active" eval="False"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="number_calls">-1</field>
<field name="repeat_missed" eval="False"/>
<field name="model">sale.channel</field>
<field name="function">export_order_status_using_cron</field>
</record>
<!-- sale tax -->
<record model="ir.ui.view" id="sale_tax_view_form">
<field name="model">sale.channel.tax</field>
<field name="type">form</field>
<field name="name">sale_tax_form</field>
</record>
<record model="ir.ui.view" id="sale_tax_view_tree">
<field name="model">sale.channel.tax</field>
<field name="type">tree</field>
<field name="name">sale_tax_tree</field>
</record>
<!-- Channel Payment Gateway -->
<record model="ir.ui.view" id="channle_payment_gateway_view_form">
<field name="model">sale.channel.payment_gateway</field>
<field name="type">form</field>
<field name="name">channel_payment_gateway_form</field>
</record>
<record model="ir.ui.view" id="channle_payment_gateway_view_tree">
<field name="model">sale.channel.payment_gateway</field>
<field name="type">tree</field>
<field name="name">channel_payment_gateway_tree</field>
</record>
</data>
</tryton>