<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="view_account_journal_form_receipts" model="ir.ui.view">
        <field name="name">account.journal.form.receipts</field>
        <field name="model">account.journal</field>
        <field name="inherit_id" ref="account.view_account_journal_form" />
        <field name="arch" type="xml">
            <xpath expr="//page[@name='advanced_settings']/group" position="inside">
                <group
                    name="receipts"
                    string="Receipts"
                    invisible="type not in ('sale', 'purchase')"
                >
                    <field name="receipts" />
                </group>
            </xpath>
        </field>
    </record>
</odoo>
