With the release of Odoo 19.0, several changes were introduced to the XML view engine. One of the most impactful adjustments relates to the <group> tag in search views. If youβve recently upgraded, you may have encountered the dreaded error:
View error context: -no context-
This error is directly tied to deprecated properties inside <group> tags.
β What Changed?
In earlier versions of Odoo, developers often used <group> with properties such as:
<group expand="0" string="Group By">
<filter name="user_id" string="User" context="{'group_by': 'user_id'}"/>
</group>
However, starting from Odoo 19.0, the following attributes are no longer supported:
-
expand="0" -
name="group_by" string="Group By"
These properties now trigger errors because the view rendering engine has been refactored. The change is documented in the official Odoo commit:
π Commit a814ad6b18da68370376d5cce26e06434cde704f
β How to Fix It
You should remove the unsupported properties and keep only the valid <filter> definitions inside <group>. For example:
Old (pre-19.0)
<group expand="0" string="Group By">
<filter name="user_id" string="User" context="{'group_by': 'user_id'}"/>
</group>
New (19.0+)
<group>
<filter name="user_id" string="User" context="{'group_by': 'user_id'}"/>
</group>
π Migration Checklist
-
Search your codebase for
<group>tags which has such attributes in XML views. -
Remove deprecated attributes (
expand,name,string).
π Conclusion
This change may seem minor, but itβs crucial for a smooth migration to Odoo 19.0. By cleaning up your XML views and removing deprecated <group> properties, youβll avoid runtime errors and ensure compatibility with the view engine.
Top comments (0)