Skip to content

Conversation

@hokolomopo
Copy link
Contributor

Description

This commit adds a new setting for pivot: whether to use tabular form. In tabular form, each level of row header is displayed in a separate column.

Task: 4794334

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 Oct 30, 2025

Pull request status dashboard

This commit adds a new setting for pivot: whether to use tabular form.
In tabular form, each level of row header is displayed in a separate
column.

Task: 4794334
@hokolomopo hokolomopo force-pushed the master-expanded-pivot-row-headers-adrm branch from f539cff to 6836cc8 Compare October 30, 2025 07:43
Comment on lines +148 to +150
const tabularForm = definition.style?.tabularForm ?? DEFAULT_PIVOT_STYLE.tabularForm;

if (pivotCell.type === "HEADER" && pivotId && pivotCell.domain.length) {
const definition = getters.getPivotCoreDefinition(pivotId);
if (!tabularForm && pivotCell.type === "HEADER" && pivotId && pivotCell.domain.length) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The icon is still displayed when it's not in tabular form in the definition, but it is in the PIVOT formula (and nothing works)

Copy link
Contributor Author

@hokolomopo hokolomopo Nov 12, 2025

Choose a reason for hiding this comment

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

Yeah .... I think I'll wait for the pivot style PR before fixing this, in there we should have a strategy to get the actual pivot style for a pivot cell (+ the pivot style will need to be adapted for tabular form)

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.

4 participants