Skip to content

[18.0] [IMP] spreadsheet_oca: writeback with audit log and rollback#104

Open
dnplkndll wants to merge 2 commits intoOCA:18.0from
ledoent:18.0-feat-writeback
Open

[18.0] [IMP] spreadsheet_oca: writeback with audit log and rollback#104
dnplkndll wants to merge 2 commits intoOCA:18.0from
ledoent:18.0-feat-writeback

Conversation

@dnplkndll
Copy link

Summary

Depends on

  • Shared infrastructure (commit A): server-side pivot engine, cell-ref helpers, _compute_related_count() DRY helper

Test plan

  • test_writeback.py passes (write logging, rollback, access control, error handling)
  • Security rules: users see only logs for spreadsheets they have access to
  • Demo audit trail entries load without errors

🤖 Generated with Claude Code

@dnplkndll dnplkndll changed the title [IMP] spreadsheet_oca: writeback with audit log and rollback [18.0] [IMP] spreadsheet_oca: writeback with audit log and rollback Mar 13, 2026
dnplkndll and others added 2 commits March 12, 2026 19:56
… helpers

Add shared infrastructure for upcoming server-side features:

- cell_ref.py: parse cell references (A1 notation), read/write cell
  values in spreadsheet_raw JSON.  Used by alerts, scenarios, input
  parameters, and XLSX export.

- pivot_data.py: replicates the JS PivotModel's read_group strategy
  in Python — computes pivot table data server-side without executing
  JavaScript.  Exposes get_pivot_data() as a JSON-RPC entry point,
  collect_pivot_summaries() for batch iteration, and
  render_pivot_table_html() for email/Chatter rendering.

- _compute_related_count(): DRY helper on spreadsheet.spreadsheet for
  child-model count fields (used by all upcoming features).

- Demo partners with geographic diversity for pivot tests.
- Demo pivot dashboard spreadsheet with =PIVOT() formulas.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds spreadsheet.writeback.log model for tracking cell-to-record
writes from spreadsheet List views back to Odoo. Each write is
logged with old/new values and can be rolled back via a single
action. Writeback must be explicitly enabled per spreadsheet.

Includes JSON-RPC controller, rollback action, security rules,
demo audit trail entries, and tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dnplkndll dnplkndll force-pushed the 18.0-feat-writeback branch from 7f1bb51 to 5998300 Compare March 13, 2026 02:05
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