Skip to content

[Pie chart ] Allow color edition for Odoo & Spreadsheet#7794

Open
matho-odoo wants to merge 1 commit intomasterfrom
master-color-pie-chart-matho
Open

[Pie chart ] Allow color edition for Odoo & Spreadsheet#7794
matho-odoo wants to merge 1 commit intomasterfrom
master-color-pie-chart-matho

Conversation

@matho-odoo
Copy link
Contributor

Add a Pie Slice section in Pie chart Design tab
Add a slice selection
Add a slice color selection
Add a slice name edition

Task: 5347414

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 Jan 15, 2026

Pull request status dashboard

@matho-odoo matho-odoo force-pushed the master-color-pie-chart-matho branch 4 times, most recently from 122e102 to 12831a2 Compare January 20, 2026 08:05
Allows the user to choose the colors of the slices
in the design side panel

Task: 5347414
@matho-odoo matho-odoo force-pushed the master-color-pie-chart-matho branch from 12831a2 to 68b35d1 Compare January 20, 2026 08:53
Copy link
Contributor

@hokolomopo hokolomopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋


setup() {
super.setup();
this.runtime = this.env.model.getters.getChartRuntime(this.props.chartId) as PieChartRuntime;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.props.chartId might (thoeritically) change during the lifecycle of the component. Define a get runtime() {...} instead

Comment on lines +760 to +762
//@ts-ignore

expect(model.getters.getChartDefinition(chartId).slicesColors).toEqual([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//@ts-ignore
expect(model.getters.getChartDefinition(chartId).slicesColors).toEqual([
//@ts-ignore
expect(model.getters.getChartDefinition(chartId).slicesColors).toEqual([

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick

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.

3 participants