Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master odoo funnel chart adrm #5838

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hokolomopo
Copy link
Contributor

[IMP] chart: export funnel chart side panel

Task: 4629660

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

@robodoo
Copy link
Collaborator

robodoo commented Mar 6, 2025

Pull request status dashboard

The conversion `ExcelChartDefinition` -> `ChartDefinition` was not
correct. We created a chart definition with an arbitrary type, and
with properties that are not always in the `ChartDefinition` for this
type (eg. `labelsAsText` for bar chart).

The correct way to handle that is to create a `ChartCreationContext`,
and create a definition from it.

I'm really not sure why the typing wasn't catching the issue.

Note: also fixed an issue with a circular dependency,
`translation_terms.ts` no longer import `paste_interactive.ts`.

Task: 4626404
@hokolomopo hokolomopo force-pushed the master-odoo-funnel-chart-adrm branch from 8afe6e1 to 88f9353 Compare March 6, 2025 10:08
This commit makes it so our ChartJS extensions work even if the chartJS
library was reloaded between the moment where we loaded the
`o_spreadsheet` library and the moment where we actually use the
extensions.

Task: 4627232
This commit adds the cumulative option to the funnel chart. There is
a slight difference from the cumulative option in the line chart. For
line chart, the first value stay the same and is added to the next.
For funnel it's the inverse, the last value stay the same and is added
to the previous (the top of the funnel grows, not the bottom).

Task: 4626404
@hokolomopo hokolomopo force-pushed the master-odoo-funnel-chart-adrm branch from 88f9353 to 90923ad Compare March 7, 2025 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants