odoo/o-spreadsheet#9026
Created by BI, Dhrutik Patel (dhrp)
- label
- odoo:17.0-fix-cf-color-scale-dhrp
- head
- b90d0cbeabe5ce65018955b09c34efa76967309a
| odoo/o-spreadsheet | |
|---|---|
| 17.0 | #9026 missing r+ |
| 18.0 | |
| saas-18.2 | |
| saas-18.3 | |
| saas-18.4 | |
| 19.0 | |
| saas-19.1 | |
| saas-19.2 | |
| saas-19.3 | |
| master |
[FIX] conditional_formatting: handle zero color scale midpoint
Description:
A color scale midpoint value of 0 was treated as absent because the evaluation logic checked the parsed midpoint with truthiness.
As a result, three-point color scales with a midpoint at 0 were evaluated as two-point scales, interpolating directly from minimum to maximum color. This made the midpoint cell use a mixed color instead of the configured midpoint color.
Task: 6312961
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