Hello,
Is there a way to retrieve, in python, the domain of active filters in the list view or the list of record IDs displayed in the list view?
I have a search function on a custom field and in this function, I would like to call a function on the IDs of the list of records displayed in the list view.
I've tried looking in the context but there's no parameter similar to “active_ids”.
Is this possible?
Thank you
First, great you took the time to updated your post with your findings! Apart from that, I'm unsure about your usecase. For doing something based on records visible I would usually rather consider a computed field that is not stored. Also, as said, unsure about your usecase, but search, read, read_group etc all are functions on odoo.models (like create, write, etc) and can be extended per model. The search function for example has this definition: def search(self, domain, offset=0, limit=None, order=None) -> Self