odoo/o-spreadsheet#8624
Created by BI, Adrien Minne (adrm)
- label
- odoo:master-scorecard-data-source-adrm
- head
- 21e1d8445250f5f092cf129353a6ed71dd28dfde
| odoo/o-spreadsheet | |
|---|---|
| master | #8624 missing r+ |
[REF] charts: add dataSources to gauge/scorecards
Description
Scorecard and gauge do not use data sources like the other charts. This commit changes it, and make them use data sources as well.
The biggest difference is that now the data sources can result style as well as cell content.
Some other changes:
- the scorecard/gauge now have the use row X as header as the other charts. It's not great.
- the ChartLabelRange component was deleted. It was only used once, and had no business logic.
Task: 6180128
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