Hi everyone,
I’ve added a custom field to the Odoo CRM module, which is a selection field with two options: Active and Inactive. Now, I want to add a single button at the top of the List View that will allow me to toggle between showing Active and Inactive leads.
Here are my requirements:
- I don’t want to use the default custom filters.
- I just want a single button that, when clicked, will toggle the displayed leads (Active ↔ Inactive) dynamically.
Has anyone done something similar or have ideas on how to achieve this?