odoo/o-spreadsheet#8743
Created by fw-bot
Merged
at d21e9b0114d4d3facadd45c8d6353b99979eb5a7
Statuses:
- label
- odoo:saas-19.1-18.0-fix-unused-pivot-adrm-527498-fw
- head
- 14ccec11ae8d8981085b123eb31f276768b2c1ab
- merged
- 5 days ago by BI, Adrien Minne (adrm)
| odoo/o-spreadsheet | |
|---|---|
| 18.0 | #8539 |
| saas-18.2 | #8738 |
| saas-18.3 | #8739 |
| saas-18.4 | #8740 |
| 19.0 | #8742 |
| saas-19.1 | #8743 |
| saas-19.2 | #8744 |
| saas-19.3 | #8745 |
| master | #8746 |
[FIX] pivot: unused pivot detection
Description:
[FIX] pivot: unused pivot detection with composed formula
If a formula has two pivots (eg. =PIVOT(1) + PIVOT(2)), the
second pivot will not be detected as used.
[FIX] pivot: unused pivot detection with calculated measure
If a pivot has a calculated measure that refers to a second pivot,
the second pivot is not detected as used. This commit fixes that.
Note: the fix does not fix 100% of the issues. A pivot only referenced
in other places (eg. in a CF rule formula) will still not be
detected as used. But checking every other place the pivot can be
referenced is expensive and error-prone. That may be done in master.
Task: 6105894
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