[18.0] [IMP] spreadsheet_oca: writeback with audit log and rollback - #104
Open
dnplkndll wants to merge 3 commits into
Open
[18.0] [IMP] spreadsheet_oca: writeback with audit log and rollback#104dnplkndll wants to merge 3 commits into
dnplkndll wants to merge 3 commits into
Conversation
dnplkndll
force-pushed
the
18.0-feat-writeback
branch
from
March 13, 2026 02:05
7f1bb51 to
5998300
Compare
dnplkndll
force-pushed
the
18.0-feat-writeback
branch
from
May 13, 2026 20:39
5998300 to
ebc2959
Compare
dnplkndll
force-pushed
the
18.0-feat-writeback
branch
from
July 27, 2026 16:25
ebc2959 to
ee95ed4
Compare
dnplkndll
force-pushed
the
18.0-feat-writeback
branch
from
July 27, 2026 18:04
ee95ed4 to
25b7c20
Compare
Assisted-by: Claude Opus 5
… helpers Assisted-by: Claude Opus 5
Assisted-by: Claude Opus 5
dnplkndll
force-pushed
the
18.0-feat-writeback
branch
from
July 27, 2026 18:42
25b7c20 to
ce436e8
Compare
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 writeback: edit a List cell in a spreadsheet and update the underlying Odoo
record, with an audit log and rollback.
Depends on #99 — its two commits are shared and drop out once
that merges.
Non-mechanical points worth flagging
verifies writeback is enabled, the spreadsheet is readable, the model is
registered, the record exists,
check_access("write")passes on that record,and the field exists and is neither readonly nor computed.
WRITEBACK_FIELD_TYPES).The previous value is stored as text so it can be rolled back, and a
relational value does not survive that round-trip —
str(recordset)yieldsres.partner(7,), which cannot be written back.str(False)is
"False", and a non-empty string is truthy, so writing it straight backwould set the field to True.
sudo()so a permitted write is alwaysrecorded, regardless of the user's rights on the log model.
AI-assisted (Claude Code); every change reviewed, tested, and owned by the author.