odoo/o-spreadsheet#5244

Created by fw-bot
Merged at ace25cfaea9289c13deb56a1245cd8bac963db16

Statuses:

label
odoo:18.0-17.0-snapshot-leave-readonly-lul-o6Dp-fw
head
235cf3561d987facb300b88b9d1e97705d972a7a
merged
3 days ago by BI, Lucas Lefèvre (lul)
odoo/o-spreadsheet
17.0 #5228
saas-17.2 #5242
saas-17.4 #5243
18.0 #5244
master #5245

[FW][FIX] collaborative: don't snapshot in read-only mode

Description:

Steps to reproduce:

  • open two browser windows with 2 different users: Alice and Bob. Alice has write access and Bob have only read-only access
  • open the same spreadsheet with both users
  • Alice updates a few cells
  • Alice leaves the spreadsheet
  • Bob leaves the spreadsheet

=> Bob is faced with an access error because he is trying to snapshot
the spreadsheet.

Task: 4344187

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: #5228