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

@@ -240,7 +240,7 @@ Use only: `name`, `model_id`, `state`, `code` (or `function`/`model`), `interval
'fusion_plating.group_fp_owner',
)]
users = env['res.users'].sudo().search([
('groups_id', 'in', shop_branch_ids),
('group_ids', 'in', shop_branch_ids), # NB: group_ids not groups_id in Odoo 19, see rule 13c
('share', '=', False), ('active', '=', True),
])
```