Skip to content

[FIX] website: update website_menu record rule domain for Odoo 19#5556

Open
aptaluke wants to merge 1 commit intoOCA:19.0from
aptaluke:19.0-fix-website-menu-domain
Open

[FIX] website: update website_menu record rule domain for Odoo 19#5556
aptaluke wants to merge 1 commit intoOCA:19.0from
aptaluke:19.0-fix-website-menu-domain

Conversation

@aptaluke
Copy link

Problem

During migration from 18.0 to 19.0, the record rule website.website_menu
causes an AttributeError because it still references user.groups_id.
In Odoo 19, this field has been renamed/replaced by group_ids and
the standard XML now uses all_group_ids.

Solution

Added a post-migration script in the website module to update the
domain_force of the website_menu rule to use user.all_group_ids.ids.

Testing

Verified on a database migration from 18.0 -> 19.0. Before this fix,
the registry failed to load; after the fix, the instance starts correctly.

@pedrobaeza
Copy link
Member

website module is not yet covered. Please do the complete migration scripts, or wait till it's done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants