upgrade-python-groups-id (U1907)#
Python code uses groups_id, renamed group_ids in Odoo 19.0.
Applies to Odoo 19.0 and later.
What it does#
Reports .groups_id and the string "groups_id" (in values for create and
write, domains and mapped), and .users of groups.
Why is this bad?#
Odoo 19.0 renamed groups_id to group_ids on users, views, menus and
actions, without an alias: the old name raises an error.
Fix safety#
Unsafe: groups_id becomes group_ids, which is right for those models but
wrong for a custom model that has its own groups_id field.