<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2015-2020 Akretion France (http://www.akretion.com/)
  @author Alexis de Lattre <alexis.delattre@akretion.com>
  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">sale_stock_usability.stock.picking.form</field>
    <field name="model">stock.picking</field>
    <field name="inherit_id" ref="stock.view_picking_form"/>
    <field name="arch" type="xml">
        <field name="origin" position="before">
            <field name="sale_id" readonly="1" attrs="{'invisible': [('sale_id', '=', False)]}"/>
        </field>
    </field>
</record>

</odoo>
