odoo/o-spreadsheet#5243

Created by fw-bot
Merged at 2c7d8d008c2bc2fe8596abd4c005f879071e8004

Statuses:

label
odoo:saas-17.4-17.0-snapshot-leave-readonly-lul-xxr5-fw
head
62c1015b8cb63cbcbac9f2b7fa21bf78101cd6ca
merged
2 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