odoo/o-spreadsheet#5129

Created by fw-bot
Merged at 8bcdb484839226ed443faced1168019b7367dba4

Statuses:

label
odoo:master-master-chart-fix_trending_line_degree-anhe-DZxv-fw
head
f9d3c261adf919874ecb1f3dc4c9864d2a6fef0d
merged
1 year ago by BI, Hendrickx Anthony (anhe)
odoo/o-spreadsheet
18.0 #5022
saas-18.2
saas-18.3
saas-18.4
19.0
saas-19.1
master #5129

[FW][IMP] charts: limit trending line degree range

Task Description

This task aims to add a maximum value for the trending line degree (for a polynomial model), fixed to the minimum value of 10 and 1 below of the number of point in the series.

Related Task

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

Forward-Port-Of: #5022