Skip to content

fix(spp_analytics): rename legacy groups_id to group_ids for Odoo 19#216

Open
kneckinator wants to merge 1 commit into
19.0from
fix/spp-analytics-groups-id-odoo19
Open

fix(spp_analytics): rename legacy groups_id to group_ids for Odoo 19#216
kneckinator wants to merge 1 commit into
19.0from
fix/spp-analytics-groups-id-odoo19

Conversation

@kneckinator
Copy link
Copy Markdown
Contributor

Summary

  • The res.users field was renamed from groups_id to group_ids in Odoo 19, but spp_analytics/tests/test_integration_demo.py still used the pre-19 name in three res.users.create() calls (lines 252, 426, 636), which would fail at test setup time.
  • Renamed all three occurrences. No behavior change intended — the legacy (6, 0, [...]) tuple form is preserved to match surrounding style.

Test plan

  • Run spp_analytics test suite — TestAggregationIntegrationDemo user creations should succeed (previously raised on the unknown groups_id field).
  • Confirm no remaining groups_id references inside spp_analytics/ (grep -rn groups_id spp_analytics/ returns nothing).

The res.users field was renamed from groups_id to group_ids in Odoo 19;
the test helper still used the pre-19 name, which would fail at user
creation time.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates spp_analytics/tests/test_integration_demo.py to rename the groups_id field to group_ids across multiple test cases, ensuring consistency with the expected schema. There are no review comments to address, and I have no additional feedback to provide.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.55%. Comparing base (dcafa51) to head (ee3a49e).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             19.0     #216      +/-   ##
==========================================
+ Coverage   71.27%   71.55%   +0.28%     
==========================================
  Files         976      977       +1     
  Lines       57736    58269     +533     
==========================================
+ Hits        41150    41696     +546     
+ Misses      16586    16573      -13     
Flag Coverage Δ
spp_analytics 93.13% <ø> (ø)
spp_api_v2_gis 71.52% <ø> (ø)
spp_api_v2_simulation 71.12% <ø> (ø)
spp_base_common 90.26% <ø> (ø)
spp_dci_demo 69.23% <ø> (ø)
spp_mis_demo_v2 73.61% <ø> (+3.76%) ⬆️
spp_programs 64.84% <ø> (ø)
spp_security 66.66% <ø> (ø)
spp_simulation 79.58% <ø> (+9.50%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant