| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 229 |
| Technical Name |
extra_url_query_params |
| License | LGPL-3 |
| Website | https://www.linkedin.com/in/rajeelzahid/ |
Extra URL Query Params
Customize Odoo views dynamically using URL query parameters without creating duplicate XML views.
Why this module?
Odoo views are normally defined in XML and remain static. This module allows you to modify views at runtime by simply appending query parameters to the URL. You can add extra fields, highlight important fields, change the default record ordering, and apply row decorations without modifying the original view.
Supported query parameters
-
add_fieldsâ Comma-separated field names to add to list and form views.
Example:?add_fields=phone,mobile -
highlight_fieldsâ Comma-separated field names to highlight in list and form views.
Example:?highlight_fields=email,phone -
order_byâ Override the default ordering of list and kanban views.
Example:?order_by=create_date desc -
decoration_*â Apply conditional row decorations in list views. Supports 5 decorations:decoration_info,decoration_muted,decoration_success,decoration_warning, anddecoration_danger.
Example:?decoration_success=state=='done'
Key capabilities
- Add extra fields to list and form views using
add_fields. - Highlight existing fields using
highlight_fields. - Override the default sorting of list and kanban views using
order_by. - Apply conditional row decorations in list views using
decoration_*. - Validates referenced fields against the current model; unknown fields are skipped safely.
- Added list columns use
optional="show"so they behave like standard optional columns. - No effect unless the corresponding URL parameters are provided.
How to use
- Install the module.
- Open any backend action.
- Append one or more supported query parameters before the hash fragment.
-
Example:
/odoo?add_fields=phone,mobile&highlight_fields=email&order_by=create_date desc
Example use cases
- Display additional columns for a specific dashboard or embedded iframe.
- Highlight important business fields during demonstrations or troubleshooting.
- Share bookmarkable URLs with custom sorting for different business workflows.
- Temporarily expose audit or technical fields without changing the original XML view.
- Visually emphasize records that meet business conditions using list row decorations.
Please log in to comment on this module