fix(shopfloor): tablet tiles domain uses group_ids (Odoo 19 rename)

Same mistake as the original implementer wave — used the deprecated
groups_id field name on res.users in the search domain. Odoo 19 raises
ValueError: Invalid field res.users.groups_id. Should be group_ids.

CLAUDE.md rule 13l example also fixed so future-Claude doesn't copy
the bug from the documentation.

Module version: 19.0.32.0.12 -> 19.0.32.0.13

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-24 10:48:29 -04:00
parent 839a7f0abc
commit 7966f8d505
3 changed files with 4 additions and 3 deletions

View File

@@ -242,8 +242,9 @@ class FpTabletController(http.Controller):
return {'ok': False, 'error': 'shop-branch role groups missing'}
Users = env['res.users'].sudo()
# Odoo 19 renamed res.users.groups_id -> group_ids (CLAUDE.md rule 13c).
users = Users.search([
('groups_id', 'in', group_ids),
('group_ids', 'in', group_ids),
('share', '=', False),
('active', '=', True),
])