<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2019-2024 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_move_line_form" model="ir.ui.view">
    <field name="name">advance_payment.account.move.line.form</field>
    <field name="model">account.move.line</field>
    <field name="inherit_id" ref="account.view_move_line_form"/>
    <field name="arch" type="xml">
        <xpath expr="//field[@name='blocked']/.." position="after">
            <group string="Sale Order" name="sale" attrs="{'invisible': [('account_internal_type', '!=', 'receivable')]}">
                <field name="sale_id"/>
                <field name="account_internal_type" invisible="1"/>
            </group>
        </xpath>
    </field>
</record>


</odoo>
