<?xml version="1.0"?>
<form create="false">
                    <header>
                        <button name="action_fetch_transactions" string="Fetch Transactions" class="oe_highlight" type="object" groups="account.group_account_user" invisible="state == 'disconnected' or not provider_data or not show_sync_actions"/>
                        <button groups="account.group_account_manager" name="action_update_credentials" string="Update Credentials" class="btn-secondary" type="object" invisible="state == 'disconnected' or not provider_data or not show_sync_actions"/>
                        <button groups="account.group_account_manager" name="action_reconnect_account" string="Reconnect" class="btn-primary" type="object" invisible="state != 'disconnected' or not provider_data or not show_sync_actions"/>
                        <button groups="account.group_account_manager" name="action_new_synchronization" string="Connect" class="btn-primary" type="object" invisible="state != 'disconnected' or provider_data or not show_sync_actions"/>
                        <field name="state" widget="statusbar" readonly="1"/>
                        <field name="show_sync_actions" invisible="1"/>
                    </header>
                    <sheet>
                        <div class="oe_title">
                            <h1><field name="name" readonly="1"/></h1>
                        </div>
                        <group>
                            <group>
                                <field name="client_id" readonly="1" string="Client id"/>
                                <field name="auto_sync" invisible="not provider_data"/>
                                <field name="provider_data" readonly="1" invisible="1"/>
                                <field name="provider_type" readonly="1"/>
                            </group>
                            <group>
                                <field name="last_refresh" string="Last refresh" readonly="1" invisible="not provider_data"/>
                                <field name="next_refresh" readonly="1" invisible="not provider_data or not auto_sync"/>
                                <field name="expiring_synchronization_date" readonly="1" invisible="not provider_data"/>
                                <field name="company_id" readonly="1" groups="base.group_multi_company"/>
                            </group>
                        </group>
                        <group>
                            <field name="account_online_account_ids" nolabel="1" widget="one2many" mode="list" string="Online Accounts" invisible="not provider_data" colspan="2">
                                <list create="false" editable="bottom"> <!-- Clicks on records (for edit) are blocked -->
                                    <field name="name" required="1"/>
                                    <field name="account_number"/>
                                    <field name="journal_ids" widget="many2many_tags" options="{'no_quick_create': True}" domain="[('type', 'in', ('bank', 'credit')), ('account_online_account_id', '=', False), ('company_id', '=', company_id)]" context="{'default_type': 'bank', 'default_bank_statements_source': 'online_sync', 'default_account_online_account_id': id}"/>
                                    <field name="last_sync"/>
                                    <field name="balance" readonly="1"/>
                                    <field name="available_balance" readonly="1"/>
                                    <field name="inverse_balance_sign" groups="base.group_no_one" optional="hide"/>
                                    <field name="inverse_transaction_sign" groups="base.group_no_one" optional="hide"/>
                                    <button name="action_reset_fetching_status" type="object" string="Reset" help="This button will reset the fetching status"/>
                                    <field name="company_id" invisible="1"/>
                                </list>
                            </field>
                        </group>
                    </sheet>
                    <!-- Chatter -->
                    <chatter/>
                </form>
            