odoo/o-spreadsheet#3909
Created by fw-bot
- label
- odoo:saas-16.4-saas-16.3-bottom-bar-drag-and-drop-readonly-adrm-krxf-fw
- head
- c873b96bddb186939897f94780d06a4717b3754c
- target
- saas-16.4
- merged
- 2 months ago by BI, Adrien Minne (adrm)
- forward-port of
- odoo/o-spreadsheet#3870
[FW][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
Forward-Port-Of: odoo/o-spreadsheet#3870