Skip to content

[copy/paste cross spreadsheet] cross version paste should be prevented#8412

Closed
fw-bot wants to merge 1 commit intosaas-18.4from
saas-18.4-18.0-prevent-cross-version-copy-paste-adrm-517125-fw
Closed

[copy/paste cross spreadsheet] cross version paste should be prevented#8412
fw-bot wants to merge 1 commit intosaas-18.4from
saas-18.4-18.0-prevent-cross-version-copy-paste-adrm-517125-fw

Conversation

@fw-bot
Copy link
Copy Markdown
Collaborator

@fw-bot fw-bot commented Apr 14, 2026

Description:

description of this task, what is implemented and why it is implemented that way.

Task: 6095101

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

Forward-Port-Of: #8410
Forward-Port-Of: #8330

@robodoo
Copy link
Copy Markdown
Collaborator

robodoo commented Apr 14, 2026

Pull request status dashboard

@fw-bot
Copy link
Copy Markdown
Collaborator Author

fw-bot commented Apr 14, 2026

This PR targets saas-18.4 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@fw-bot
Copy link
Copy Markdown
Collaborator Author

fw-bot commented Apr 14, 2026

@hokolomopo @VincentSchippefilt ci/runbot failed on this forward-port PR

When pasting content from the clipboard, we try to paste the spreadsheet
content without checking the version of the content, and only fallback
if an error was thrown.

This is not very resilient, as allowDispatch don't throw, and the model
isn't transaction-based, so half of the paste can be applied before
an error is thrown.

We will now prevent pasting spreadsheet content if the versions do
not match, and warn the user.

Task: 6095101
X-original-commit: 1ba7513
@hokolomopo hokolomopo force-pushed the saas-18.4-18.0-prevent-cross-version-copy-paste-adrm-517125-fw branch from 3483fd4 to c3fab5b Compare April 15, 2026 06:59
@fw-bot
Copy link
Copy Markdown
Collaborator Author

fw-bot commented Apr 15, 2026

@hokolomopo @VincentSchippefilt this PR has become a normal PR because head updated from 3483fd4 to c3fab5b. It must be merged to be forward-ported further.

@hokolomopo
Copy link
Copy Markdown
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Apr 15, 2026
When pasting content from the clipboard, we try to paste the spreadsheet
content without checking the version of the content, and only fallback
if an error was thrown.

This is not very resilient, as allowDispatch don't throw, and the model
isn't transaction-based, so half of the paste can be applied before
an error is thrown.

We will now prevent pasting spreadsheet content if the versions do
not match, and warn the user.

closes #8412

Task: 6095101
X-original-commit: 1ba7513
Signed-off-by: Vincent Schippefilt (vsc) <vsc@odoo.com>
Signed-off-by: Adrien Minne (adrm) <adrm@odoo.com>
@robodoo robodoo closed this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants