-
-
Notifications
You must be signed in to change notification settings - Fork 313
/
Copy pathstock_picking_views.xml
160 lines (160 loc) · 7.63 KB
/
stock_picking_views.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
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 Tecnativa - Ernesto Tejeda
Copyright 2024, 2025 Guavana - Leonardo J. Caballero G.
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="view_picking_form" model="ir.ui.view">
<field name="name">stock.picking.form.inherit</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form" />
<field name="arch" type="xml">
<header position="inside">
<button
name="action_send_to_voxel"
string="Send to Voxel"
type="object"
attrs="{'invisible': [
'|',
('picking_type_code', '=', 'internal'),
('state', 'not in', ['assigned', 'done']),
]}"
/>
</header>
<notebook position="inside">
<field name="voxel_enabled" invisible="1" />
<page
string="Voxel"
attrs="{'invisible': [('voxel_enabled', '!=', True)]}"
groups="edi_voxel_oca.group_voxel_manager"
>
<group>
<field name="voxel_state" />
</group>
<notebook>
<page string="Voxel Jobs" name="page_voxel_jobs">
<group name="group_voxel_jobs">
<field
name="voxel_job_ids"
options="{'reload_on_button': true}"
nolabel="1"
readonly="1"
>
<tree>
<field name="date_created" />
<field name="eta" />
<field name="date_done" />
<field name="state" />
<button
type="object"
name="voxel_requeue_sudo"
string="Requeue"
class="oe_highlight"
attrs="{'invisible': [('state', '!=', 'failed')]}"
/>
<button
type="object"
name="voxel_cancel_now"
string="Cancel sending"
class="oe_highlight_cancel"
icon="fa-times-circle"
attrs="{'invisible': [('state', 'not in', ['pending','enqueued'])]}"
/>
<button
type="object"
name="voxel_do_now"
string="Send now"
class="oe_highlight"
icon="fa-fighter-jet"
attrs="{'invisible': ['|', ('state', '!=', 'pending'), ('eta', '=', False)]}"
/>
</tree>
</field>
</group>
</page>
<page
string="Voxel XML report"
name="page_voxel_report"
attrs="{'invisible': [('voxel_xml_report', '=', False)]}"
>
<group name="group_voxel_report">
<group
colspan="8"
attrs="{'invisible': [('voxel_filename', '=', False)]}"
>
<field name="voxel_filename" />
</group>
<group colspan="8">
<field
name="voxel_xml_report"
widget="ace"
options="{'mode': 'xml'}"
nolabel="1"
/>
</group>
</group>
</page>
<page
string="Processing error"
name="page_voxel_precessing_error"
attrs="{'invisible': [('processing_error', '=', False)]}"
>
<group name="group_voxel_processing_error" colspan="8">
<field name="processing_error" nolabel="1" />
</group>
</page>
</notebook>
</page>
</notebook>
</field>
</record>
<record id="view_picking_internal_search" model="ir.ui.view">
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_internal_search" />
<field name="arch" type="xml">
<filter name="done" position="after">
<group
string="Voxel filters"
groups="edi_voxel_oca.group_voxel_manager"
>
<separator />
<filter
name="voxel_not_sent"
string="Voxel report not sent"
domain="[('voxel_state', '=', 'not_sent'), ('voxel_enabled', '=', True)]"
/>
<filter
name="voxel_in_process"
string="Voxel report in process"
domain="[('voxel_state', '=', 'in_process')]"
help="Voxel report in process"
/>
<filter
name="voxel_accepted"
string="Voxel report accepted"
domain="[('voxel_state', '=', 'accepted')]"
help="Voxel report accepted"
/>
<filter
name="voxel_sending_error"
string="Voxel report failed"
domain="[('voxel_state', '=', 'sending_error')]"
help="The last attemp to sent to Voxel has failed"
/>
<filter
name="voxel_processing_error"
string="Voxel report processing error"
domain="[('voxel_state', '=', 'processing_error')]"
help="The last Voxel report processing with errors"
/>
<filter
name="voxel_cancelled"
string="Voxel cancelled"
domain="[('voxel_state', '=', 'cancelled')]"
help="Cancelled Voxel reports"
/>
<separator />
</group>
</filter>
</field>
</record>
</odoo>