Tuesday, July 14, 2026
1 change · 17.0
Enhancements to existing features
This update allows developers to pass custom context information directly through search bar fields in Odoo. This provides more control over how search results are filtered, potentially improving data accuracy and relevance for users. It's a minor improvement that enhances the flexibility of Odoo's search functionality.
Original PR description
Allow using `context="{...}"` in `search` views' `field` tags
Eg:
```
<search>
<field name="partner_id" context="{'ctx_key': ctx_val}"/>
</search>
```
will propagate `{'ctx_key': ctx_val}` to `res.partner`'s context when `name_search()` is called.
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr