-
Notifications
You must be signed in to change notification settings - Fork 18
/
shipment.xml
151 lines (127 loc) · 6.33 KB
/
shipment.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
<?xml version="1.0"?>
<tryton>
<data>
<record model="ir.ui.view" id="shipment_out_view_tree">
<field name="model">stock.shipment.out</field>
<field name="inherit" ref="stock.shipment_out_view_tree"/>
<field name="name">shipment_out_tree</field>
</record>
<!-- Generate Labels -->
<record model="ir.action.wizard" id="wizard_generate_shipping_label">
<field name="name">Generate Shipment Label</field>
<field name="wiz_name">shipping.label</field>
<field name="model">stock.shipment.out</field>
</record>
<record model="ir.ui.view" id="generate_shipping_label_message_view_form">
<field name="model">shipping.label.end</field>
<field name="type">form</field>
<field name="name">generate_shipping_label_message_view_form</field>
</record>
<record model="ir.ui.view" id="select_carrier_view_form">
<field name="model">shipping.label.start</field>
<field name="type">form</field>
<field name="name">generate_shipping_label_wizard_start_view_form</field>
</record>
<record model="ir.ui.view" id="shipment_out_view_form">
<field name="model">stock.shipment.out</field>
<field name="inherit" ref="stock.shipment_out_view_form"/>
<field name="name">shipment_out_form</field>
</record>
<record model="ir.ui.view" id="package_view_form">
<field name="model">stock.package</field>
<field name="inherit" ref="stock_package.package_view_form"/>
<field name="name">package_form</field>
</record>
<record model="ir.ui.view" id="select_rate_view_form">
<field name="model">shipping.label.select_rate</field>
<field name="type">form</field>
<field name="name">select_rate_view_form</field>
</record>
<record model="stock.package.type" id="shipment_package_type">
<field name="name">Shipment Package</field>
</record>
<!-- Add more fields to package tree view-->
<record model="ir.ui.view" id="package_view_tree">
<field name="model">stock.package</field>
<field name="inherit" ref="stock_package.package_view_tree"/>
<field name="name">package_tree</field>
</record>
<!-- View for box type -->
<record model="ir.ui.view" id="box_type_form">
<field name="model">carrier.box_type</field>
<field name="type">form</field>
<field name="name">box_type_form</field>
</record>
<record model="ir.ui.view" id="box_type_tree">
<field name="model">carrier.box_type</field>
<field name="type">tree</field>
<field name="name">box_type_tree</field>
</record>
<record model="ir.action.act_window" id="act_box_type_form">
<field name="name">Shipping Box Type</field>
<field name="res_model">carrier.box_type</field>
</record>
<record model="ir.action.act_window.view" id="act_box_type_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="box_type_tree"/>
<field name="act_window" ref="act_box_type_form"/>
</record>
<record model="ir.action.act_window.view" id="act_box_type_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="box_type_form"/>
<field name="act_window" ref="act_box_type_form"/>
</record>
<menuitem name="Shipping Box Type" parent="stock.menu_stock"
sequence="3" id="menu_box_type_form" action="act_box_type_form"/>
<record model="ir.ui.view" id="shipment_tracking_form">
<field name="model">shipment.tracking</field>
<field name="type">form</field>
<field name="name">shipment_tracking_form</field>
</record>
<record model="ir.ui.view" id="shipment_tracking_tree">
<field name="model">shipment.tracking</field>
<field name="type">tree</field>
<field name="name">shipment_tracking_tree</field>
</record>
<!--Cron To refresh state of tracking numbers-->
<record model="ir.cron" id="cron_refresh_tracking_numbers">
<field name="name">Refresh Tracking Numbers</field>
<field name="request_user" ref="res.user_admin"/>
<field name="user" ref="res.user_trigger"/>
<field name="active" eval="True"/>
<field name="interval_number">3</field>
<field name="interval_type">hours</field>
<field name="number_calls">-1</field>
<field name="repeat_missed" eval="False"/>
<field name="model">shipment.tracking</field>
<field name="function">refresh_tracking_numbers_cron</field>
</record>
<!-- Carrier Service -->
<record model="ir.ui.view" id="carrier_service_view_form">
<field name="model">carrier.service</field>
<field name="type">form</field>
<field name="name">carrier_service_view_form</field>
</record>
<record model="ir.ui.view" id="carrier_service_view_tree">
<field name="model">carrier.service</field>
<field name="type">tree</field>
<field name="name">carrier_service_view_tree</field>
</record>
<record model="ir.action.act_window" id="act_carrier_service">
<field name="name">Carrier Service</field>
<field name="res_model">carrier.service</field>
</record>
<record model="ir.action.act_window.view" id="act_carrier_service_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="carrier_service_view_tree"/>
<field name="act_window" ref="act_carrier_service"/>
</record>
<record model="ir.action.act_window.view" id="act_carrier_service_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="carrier_service_view_form"/>
<field name="act_window" ref="act_carrier_service"/>
</record>
<menuitem name="Shipping Carrier Services" parent="stock.menu_stock"
sequence="4" id="carrier_service" action="act_carrier_service"/>
</data>
</tryton>