<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 ForgeFlow, S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="view_move_form" model="ir.ui.view">
        <field name="name">account.move.form</field>
        <field name="model">account.move</field>
        <field name="inherit_id" ref="account.view_move_form" />
        <field name="arch" type="xml">
            <xpath expr='//field[@name="ref"]' position="after">
                <field
                    name="approver_id"
                    readonly="review_ids"
                    invisible="move_type in ('out_invoice', 'out_refund', 'entry')"
                />
            </xpath>
        </field>
    </record>
    <record id="view_account_invoice_filter" model="ir.ui.view">
        <field name="name">account.move.select - account_move_tier_validation</field>
        <field name="model">account.move</field>
        <field name="inherit_id" ref="account.view_account_invoice_filter" />
        <field name="arch" type="xml">
            <field name="invoice_user_id" position="after">
                <field name="approver_id" />
            </field>
        </field>
    </record>
</odoo>
