odoo/o-spreadsheet#1665

Created by fw-bot
label
odoo:saas-15.3-15.0-dimension-transform-rar-2UZD-fw
head
7421b0eebe6fcd177446745bfa6d794c83c16653
target
saas-15.3 (inactive)
merged
2 years ago by BI, RĂ©mi Rahir (rar)
forward-port of
odoo/o-spreadsheet#1663

[FW][FIX] collaborative: do not transform commands in other dimension

Transformations of `gridDependentCommand's should skip the transformation when the executed and transformed commands are applied to different dimensions.

e.g. `DELETE_COLUMNS_ROWS` in dimension `COL` should not alter
`HIDE_COLUMSN_ROWS` in dimension `ROW`.

task 2996249

## Description:

description of this task, what is implemented and why it is implemented that way.

Odoo task ID : [TASK_ID](https://www.odoo.com/web#id=TASK_ID&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 (\_lt("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#1663