[IMP] figures: add anchor to figures
Description:
[IMP] figures: add anchor to figures
Add possibilities for chart to be anchored to the top-left corner cell. If a cell is anchored, it will be moving with the cell on modification of the sheet (i.e. col/row addition/deletion).
The figure can still have a fixed position, this will act as if the anchor is placed in the left-most, top-most cell.
Task: 4189170
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
@fdamhaut I forgot a point, we should have some tests that cover the functional issues I mentionned in the task pad (deleting the anchor header and the "MOVE_COLUMNS_ROWS" issue
@fdamhaut I forgot a point, we should have some tests that cover the functional issues I mentionned in the task pad (deleting the anchor header and the "MOVE_COLUMNS_ROWS" issue
I already added some test in figures_plugin.test for that L457-830
figures_plugin.test
SOrry I completely missed it :'(
@robodoo r+
