forked from OCA/delivery-carrier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstock_picking_views.xml
26 lines (26 loc) · 1012 Bytes
/
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
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_picking_withcarrier_out_form" model="ir.ui.view">
<field name="model">stock.picking</field>
<field name="inherit_id" ref="delivery.view_picking_withcarrier_out_form" />
<field name="groups_id" eval="[(4, ref('base.group_no_one'))]" />
<field name="arch" type="xml">
<xpath expr="//header" position='inside'>
<button
name="schenker_get_label"
string="Schenker Label"
type="object"
attrs="{
'invisible':[
'|',
'|',
('delivery_type', '!=', 'schenker'),
('carrier_tracking_ref', '=', False),
('state', '!=', 'done')
]
}"
/>
</xpath>
</field>
</record>
</odoo>