<?xml version="1.0"?>
<list string="Payment Items" decoration-info="parent_state == 'draft'" create="false" edit="true" expand="context.get('expand', False)" multi_edit="1" sample="1" default_order="payment_date asc, id asc">
                    <header>
                        <button name="action_payment_items_register_payment" type="object" string="Pay" groups="account.group_account_user"/>
                    </header>
                    <field name="move_id" column_invisible="True"/>
                    <field name="invoice_date" string="Bill Date"/>
                    <field name="date" readonly="1" optional="hide"/>
                    <field name="date_maturity" string="Invoice Due Date" readonly="1" optional="hide"/>
                    <field name="discount_date" string="Discount Date" optional="hide"/>
                    <field name="payment_date" readonly="1"/>
                    <field name="company_id" column_invisible="True"/>
                    <field name="company_id" groups="base.group_multi_company" readonly="1" optional="hide"/>
                    <field name="journal_id" readonly="1" options="{&quot;no_open&quot;:True}" optional="hide"/>
                    <field name="move_name" string="Journal Entry" widget="open_move_widget"/>
                    <field name="partner_id" optional="show" readonly="move_type != 'entry'"/>
                    <field name="ref" readonly="False"/>
                    <field name="name" optional="show"/>
                    <field name="discount_amount_currency" string="Discount Amount" optional="show" invisible="not discount_amount_currency"/>
                    <field name="amount_residual" sum="Total Residual" string="Residual" readonly="1" invisible="not is_account_reconcile"/>
                    <field name="amount_residual_currency" string="Residual in Currency" optional="hide" readonly="1" invisible="is_same_currency or not is_account_reconcile" groups="base.group_multi_currency"/>
                    <field name="currency_id" groups="base.group_multi_currency" optional="hide" string="Currency" readonly="1" invisible="is_same_currency"/>
                    <field name="company_currency_id" column_invisible="True"/>
                    <field name="move_type" column_invisible="True"/>
                    <field name="is_same_currency" column_invisible="True"/>
                    <field name="is_account_reconcile" column_invisible="True"/>
                    <field name="parent_state" column_invisible="True"/>
                    <groupby name="partner_id">
                        <button name="edit" type="edit" icon="fa-edit" title="Edit"/>
                    </groupby>
                </list>
            