Skip to content

Master enhance pivot formula pro #6414

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

Closed
wants to merge 3 commits into from

Conversation

pro-odoo
Copy link
Collaborator

Description:

description of this task, what is implemented and why it is implemented that way.

Task: TASK_ID

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 May 14, 2025

Pull request status dashboard

@@ -368,7 +368,7 @@ describe("Pivot fix formula menu item", () => {
test("Fixing the formula take into account the arguments of PIVOT()", () => {
// prettier-ignore
const grid = {
A1: "Customer", B1: "Price", C1: "Date", E1: "=PIVOT(1, 1, false, false, 1)",
A1: "Customer", B1: "Price", C1: "Date", E1: "=PIVOT(1, 1, false, false, 1, false)",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change ? You change the result of the pivot function in the test (now the measure isn't shown), but the test didn't have to change ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nvm I understood, before hiding the headers also hid the measures. The change might break some spreadsheets then ? Are we fine with that ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes it might break some spreadsheets, and from what we discussed yesterday with @LucasLefevre it was fine.
Another solution is to make this new attribute false by default and did not take it into account if include_columns_title is true to keep the current behavior, but meh...

As soon as it's not a traceback, I think I will be able to sleep tonight

@pro-odoo pro-odoo force-pushed the master-enhance-pivot-formula-pro branch from effc60c to a7f3dea Compare June 2, 2025 07:30
pro-odoo added a commit to odoo-dev/odoo that referenced this pull request Jun 2, 2025
pro-odoo added 3 commits June 11, 2025 11:09
Before this commit, the pivot formula id was displayed with the title
in the pivot formula (top-left). Now, the title is only the name of the
pivot.

Task: 4793572
This commit prepares the ground for the introduction of a new parameter
to the pivot formula to display or hide the measures row.

Task: 4793572
With this commit, one can now hide the columns headers rows without
hiding the measures row one, by adding a new parameter to the pivot
formula. This will be useful in our Odoo dashboards.

Task: 4793572
@pro-odoo pro-odoo force-pushed the master-enhance-pivot-formula-pro branch from a7f3dea to 850c6f2 Compare June 11, 2025 09:16
Copy link
Collaborator

@LucasLefevre LucasLefevre left a comment

Choose a reason for hiding this comment

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

robodoo rebase-ff r+

@robodoo
Copy link
Collaborator

robodoo commented Jun 12, 2025

Merge method set to rebase and fast-forward.

robodoo pushed a commit that referenced this pull request Jun 12, 2025
Before this commit, the pivot formula id was displayed with the title
in the pivot formula (top-left). Now, the title is only the name of the
pivot.

Task: 4793572
Part-of: #6414
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
robodoo pushed a commit that referenced this pull request Jun 12, 2025
This commit prepares the ground for the introduction of a new parameter
to the pivot formula to display or hide the measures row.

Task: 4793572
Part-of: #6414
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
robodoo pushed a commit that referenced this pull request Jun 12, 2025
With this commit, one can now hide the columns headers rows without
hiding the measures row one, by adding a new parameter to the pivot
formula. This will be useful in our Odoo dashboards.

closes #6414

Task: 4793572
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
@robodoo robodoo added the 18.4 label Jun 12, 2025
@robodoo robodoo closed this Jun 12, 2025
pro-odoo added a commit to odoo-dev/odoo that referenced this pull request Jun 12, 2025
robodoo pushed a commit to odoo/odoo that referenced this pull request Jun 13, 2025
@fw-bot fw-bot deleted the master-enhance-pivot-formula-pro branch June 19, 2025 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants