<odoo>

    <record id="account_view_out_invoice_tree_cfdi" model="ir.ui.view">
        <field name="name">account.out.invoice.tree.cfdi</field>
        <field name="model">account.move</field>
        <field name="inherit_id" ref="account.view_out_invoice_tree" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='payment_state']" position="after">
                <field name="cfdi_document_state" invisible="1" />
                <field
                    name="cfdi_document_id"
                    class="mr-3"
                    widget="badge"
                    decoration-success="cfdi_document_state == 'published'"
                    decoration-danger="cfdi_document_state == 'canceled'"
                />
            </xpath>
        </field>
    </record>

    <record id="account_view_account_invoice_filter_cfdi" model="ir.ui.view">
        <field name="name">account.invoice.filter.cfdi</field>
        <field name="model">account.move</field>
        <field name="inherit_id" ref="account.view_account_invoice_filter" />
        <field name="arch" type="xml">
            <filter name="myinvoices" position="after">
                <filter
                    string="Sin CFDI"
                    name="no_cfdi"
                    domain="[('cfdi_document_id','=',False)]"
                />
            </filter>
        </field>
    </record>

</odoo>
