<?xml version="1.0"?>
<data>
                <xpath expr="//kanban" position="inside">
                    <field name="is_peppol_journal"/>
                    <field name="account_peppol_proxy_state"/>
                </xpath>

                <xpath expr="//t[@id='account.JournalBodySalePurchase']" position="inside">
                    <t t-if="['sender', 'smp_registration', 'receiver'].includes(record.account_peppol_proxy_state.raw_value)">
                        <t t-if="journal_type == 'sale'">
                            <div class="w-100">
                                <a type="object" name="peppol_get_message_status" groups="account.group_account_invoice">Fetch Peppol invoice status</a>
                            </div>
                            <div class="w-100">
                                <a type="object" name="action_peppol_ready_moves" groups="account.group_account_invoice">Peppol ready invoices</a>
                            </div>
                        </t>
                        <t t-elif="journal_type == 'purchase'">
                            <t t-if="record.is_peppol_journal.raw_value and record.account_peppol_proxy_state.raw_value === 'receiver'">
                                <div class="w-100">
                                    <a type="object" name="peppol_get_new_documents" groups="account.group_account_invoice">Fetch from Peppol</a>
                                </div>
                            </t>
                        </t>
                    </t>
                </xpath>
            </data>
        