<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017 Tecnativa - Sergio Teruel
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="view_picking_form" model="ir.ui.view">
        <field name="model">stock.picking</field>
        <field name="inherit_id" ref="stock.view_picking_form" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='move_ids_without_package']" position="before">
                <button
                    name="%(action_stock_picking_operation_change_location)d"
                    type="action"
                    string="Change Location"
                    groups="stock.group_stock_multi_locations"
                    attrs="{'invisible': [('show_operations', '=', True)]}"
                >
                </button>
            </xpath>
            <xpath expr="//field[@name='move_line_nosuggest_ids']" position="before">
                <button
                    name="%(action_stock_picking_operation_change_location)d"
                    type="action"
                    string="Change Location"
                    groups="stock.group_stock_multi_locations"
                    attrs="{'invisible': [('show_operations', '=', False)]}"
                >
                </button>
            </xpath>
        </field>
    </record>
</odoo>
