<?xml version="1.0"?>
<odoo>
    <template id="l10n_ch_report_invoice_document" inherit_id="account.report_invoice_document">
        <xpath expr="//t[@t-set='show_qr']" position="attributes">
            <attribute name="t-value" add="and o.qr_code_method != 'ch_qr'" separator=" "/>
        </xpath>
        <xpath expr="//div[hasclass('invoice_main')]" position="after">
            <div t-if="o.l10n_ch_is_qr_valid">
                <div style="page-break-after: always"/>
                <br/>
            </div>
        </xpath>
    </template>
</odoo>
