odoo/o-spreadsheet#9438
Created by BI, Adrien Minne (adrm)
- label
- odoo:master-better-clear-formatting-adrm
- head
- f81dc6f29352443fe4eefa0b2d80766198e13890
| odoo/o-spreadsheet | |
|---|---|
| master | #9438 missing r+ |
[IMP] topbar: improve clear formatting action
Description
With this commit, the clear formatting action does a bit more than clearing the format/style: it also clears merges, conditional formats and table styles.
We kept the old CLEAR_FORMATTING as it was so is doesn't break existing spreadsheet (and the command is still used once), and created a new CLEAR_ALL_STYLING command that clears everything else and dispatches a CLEAR_FORMATTING.
Task: 5391157
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