odoo/o-spreadsheet#3913

Created by fw-bot
label
odoo:saas-17.2-saas-16.3-bottom-bar-drag-and-drop-readonly-adrm-BJs7-fw
head
5fb3f8f5ba93e376f2433ea43fcc1a8d79a48ae4
target
saas-17.2
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