<?xml version="1.0"?>
<list editable="top" multi_edit="1" js_class="bank_rec_list" decoration-muted="state == 'draft'" default_order="internal_index desc">
                    <!--Invisible fields-->
                    <field name="statement_complete" column_invisible="True"/>
                    <field name="statement_valid" column_invisible="True"/>
                    <field name="is_reconciled" column_invisible="True"/>
                    <field name="checked" column_invisible="True"/>
                    <field name="country_code" column_invisible="True"/>
                    <field name="currency_id" column_invisible="True"/>
                    <field name="company_id" column_invisible="True"/>

                    <!--Visible fields-->
                    <field name="sequence" widget="handle" column_invisible="True"/> <!--Until we add the JS class-->
                    <field name="date" readonly="is_reconciled and amount != 0" options="{'warn_future': true}"/>
                    <field name="move_id" optional="hidden" required="0"/>
                    <field name="payment_ref" required="1" readonly="is_reconciled and amount != 0"/>
                    <field name="partner_id" readonly="is_reconciled and amount != 0"/>
                    <field name="account_number" optional="hidden"/>
                    <field name="narration" string="Notes" readonly="is_reconciled and amount != 0" optional="hidden"/>
                    <field name="ref" readonly="is_reconciled and amount != 0" optional="hidden"/>
                    <field name="transaction_type" optional="hidden"/>
                    <field name="foreign_currency_id" optional="hidden" groups="base.group_multi_currency" domain="[('id', '!=', currency_id)]" options="{'no_open': True, 'no_create': True}" readonly="is_reconciled and amount != 0"/>
                    <field name="amount_currency" optional="hidden" groups="base.group_multi_currency" invisible="not foreign_currency_id" readonly="is_reconciled and amount != 0"/>
                    <field name="amount" readonly="is_reconciled and amount != 0"/>
                    <field name="journal_id" domain="[('type', 'in', ['bank','cash'])]" column_invisible="bool(context.get('default_journal_id'))" readonly="(statement_id or is_reconciled) and amount != 0"/>
                    <field name="running_balance" class="oe_read_only"/>
                    <field name="statement_id" optional="show" options="{'no_quick_create': True}" domain="['|',('journal_id', '=', journal_id),('journal_id', '=', False)]" context="{                                 'default_journal_id':journal_id,                                 'form_view_ref': 'account_accountant.view_bank_statement_form_bank_rec_widget',                                 'st_line_id':id,                             }" decoration-danger="statement_complete == False or statement_valid == False" readonly="not id"/>
                    <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-success="state == 'posted'"/>
                </list>
            