Hi, I'm trying to create a new tree view with vendor invoice information, but the information displays all the accounting entries of the 'account.move' model and I only want vendor invoices. I also want to export the information to xslx.
This is my xml code.
Thanks.
    id="view_libro_compra" model="ir.ui.view">
        name="name">Libro de iva compra
        name="model">account.move
        name="arch" type="xml">
            
            string="Libro compra">
                name="currency_id" invisible="1"/>
                name="empty_field"/>
                name="invoice_date"/>
                name="name" string="Número de correlativo"/>
                name="document_nrc"/>
                name="partner_id" string="Nombre"/>
                name="empty_field"/>
                name="empty_field"/>
                name="amount_untaxed" widget="monetary" options="{'currency_field': 'currency_id'}"/>
                name="amount_tax" widget="monetary" options="{'currency_field': 'currency_id'}"/>
                name="empty_field"/>
                name="amount_total" widget="monetary" options="{'currency_field': 'currency_id'}"/>
                name="empty_field"/>
            
        
    
    id="action_purchase_order_new" model="ir.actions.act_window">
        name="name">Libro de iva compra4
        name="res_model">account.move
        name="view_mode">tree
        name="view_id" ref="view_libro_compra"/>
    
    id="menu_purchase_order_new"
              name="Libro de iva compra4"
              parent="account.menu_finance_payables"
              action="action_purchase_order_new"/>
