<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2020 ACSONE SA/NV
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>

    <record model="ir.ui.view" id="stock_move_form_view">
        <field
            name="name"
        >stock.move.form (in sale_stock_restocking_fee_invoicing)</field>
        <field name="model">stock.move</field>
        <field name="inherit_id" ref="stock.view_move_form" />
        <field name="arch" type="xml">
            <field name="date_deadline" position="after">
                <field name="picking_kind" invisible="1" />
                <field
                    name="charge_restocking_fee"
                    attrs="{'invisible':[('picking_kind','!=','customer_return')]}"
                />
            </field>
        </field>
    </record>

</odoo>
