[18.0][IMP] spreadsheet_oca: server-side pivot engine + scheduled data refresh - #99
Open
dnplkndll wants to merge 3 commits into
Open
[18.0][IMP] spreadsheet_oca: server-side pivot engine + scheduled data refresh#99dnplkndll wants to merge 3 commits into
dnplkndll wants to merge 3 commits into
Conversation
dnplkndll
force-pushed
the
18.0-features-atomic
branch
from
March 13, 2026 01:58
93690d7 to
f2a7d1e
Compare
dnplkndll
force-pushed
the
18.0-features-atomic
branch
from
May 13, 2026 20:28
f2a7d1e to
800ab6e
Compare
dnplkndll
force-pushed
the
18.0-features-atomic
branch
from
July 27, 2026 14:41
800ab6e to
1b414ae
Compare
dnplkndll
force-pushed
the
18.0-features-atomic
branch
2 times, most recently
from
July 27, 2026 16:30
b3e5104 to
13a5391
Compare
Assisted-by: Claude Opus 5
… helpers Assisted-by: Claude Opus 5
…summaries Assisted-by: Claude Opus 5
dnplkndll
force-pushed
the
18.0-features-atomic
branch
from
July 27, 2026 18:42
13a5391 to
fe32270
Compare
This was referenced Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a server-side pivot engine to
spreadsheet_oca, plus a scheduled refreshthat recomputes a spreadsheet's Odoo pivots and posts the tables to its Chatter.
The first two commits are shared by #100–#105 and will drop out of those PRs
once this one merges.
Non-mechanical points worth flagging
pivot_data.pyreimplements the JSPivotModelin Python. For rowgroupbys
Rand column groupbysCit queries every prefix pair — the"divisors" — which is what produces a pivot's subtotal rows, and costs
(len(R)+1) x (len(C)+1)queries per pivot, matching the JS.rowValuesstays id-based becausegrouping needs it;
rowLabelsis what anything human-facing renders, or amany2one group shows up as a bare database id.
partialwithfailedGroupBys, and anAccessErrorpropagates rather thandegrading into an empty group.
refreshes whichever schedules are due, and each runs as its own Run As
user (
with_user), so a summary never contains rows that user cannot read.A static cron alone would run everything as the install user.
read_groupis deliberate. It returns__domainand formatted valuesthat
_read_groupdoes not. The single call site is annotated as the oneplace to port for 19.0, where it becomes
formatted_read_group.[FIX]is an unrelated upstream bug:_compute_filenameiteratedselfbut readself.name, raising a singleton error on any multi-recordset. It is split out so it can be reviewed and merged on its own.
AI-assisted (Claude Code); every change reviewed, tested, and owned by the author.