Skip to Content
Menu
This question has been flagged
602 Views

I created a custom crm.lead report, and I am able to add it to the action menu like this:

    
    Generate Custom CRM Lead Report
   
   
    code
   
        action = {
            'type': 'ir.actions.report',
            'report_name': 'odoo_crm_gis.crm_lead_coe_report',
            'model': 'crm.lead',
            'report_type': 'qweb-html',
        }
   


but to use that, the user has to first go to list view then select all records.  That is not very convenient.  What I would like to do is to add myself to the action menu before any records are selected, where it now says "Import records" and "Export all."  That way, the user can just select the correct filters, see a whole list of records (even in kanban view), and go "action gear" "export custom" and export them all using my custom report.


Is it possible to add to this menu, so that you can invoke the report before selecting any records?



Avatar
Discard
Related Posts Replies Views Activity
1
May 25
94
0
May 25
238
1
May 25
442
1
May 25
506
0
Apr 25
2