<?xml version="1.0"?>
<data inherit_id="account_payment.portal_invoice_page_inherit_payment">
        <xpath expr="//div[@id='portal_pay']" position="attributes">
            <attribute name="t-if">
                invoice._has_to_be_paid()
            </attribute>
        </xpath>
        <xpath expr="//t[@t-call='portal.portal_record_sidebar']//div[hasclass('d-grid')]//a[starts-with(@href, '#')][//i]" position="attributes">
            <attribute name="t-if">
                invoice._has_to_be_paid()
            </attribute>
        </xpath>
    </data>

