odoo/o-spreadsheet#3870
Created by BI, Adrien Minne (adrm)
- label
- odoo:saas-16.3-bottom-bar-drag-and-drop-readonly-adrm
- head
- d5068ab9ee1acf21741bb9dee038c19521cb30f7
- target
- saas-16.3
- merged
- 2 months ago by BI, Lucas Lefèvre (lul)
- forward-ports
- odoo/o-spreadsheet#3914 targeting master
- odoo/o-spreadsheet#3913 targeting saas-17.2
- odoo/o-spreadsheet#3912 targeting saas-17.1
- odoo/o-spreadsheet#3910 targeting 17.0
- odoo/o-spreadsheet#3909 targeting saas-16.4
[FIX] bottom_bar: disable sheet drag & drop in readonly
## Description
When the sheet is readonly, the bottom bar should not allow the user to drag and drop the sheet. Before this commit, dragging a sheet was possible, but the sheet was not moved when dropping. Now we prevent dragging the sheet when it is readonly.
Task: : [3820888](https://www.odoo.com/web#id=3820888&action=333&active_id=2328&model=project.task&view_type=form&cids=1&menu_id=4720)
## 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