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

[FIX] mis_builder: Comparison percentages export format in XLSX #300

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

MaxyMoos
Copy link
Contributor

@MaxyMoos MaxyMoos commented May 8, 2020

When a divider/factor Style parameter is used on a KPI, it is also applied to the "Compare columns" when exporting to Excel, which leads to errors of magnitude for the percentages displayed in the resulting XLSX file.

Here is a simple report using a KPI with a style factor "1e3 - k" and with a compare column as it is displayed in Odoo :
Screenshot from 2020-05-08 09-27-33

And the resulting XLSX export:
Screenshot from 2020-05-08 09-27-47

Seen on 12.0 but it seems like 10.0 code is similar.

@OCA-git-bot
Copy link
Contributor

Hi @sbidoul,
some modules you are maintaining are being modified, check this out!

@MaxyMoos MaxyMoos force-pushed the fix-xlsx-percentages-with-divider branch 2 times, most recently from c32d65c to 51fe61f Compare May 8, 2020 08:25
When a 'divider' style param is used on a kpi, it is also applied
to the variation columns when exporting to Excel, which leads to
errors of magnitude for the percentages displayed in the resulting
XLSX file.
@MaxyMoos MaxyMoos force-pushed the fix-xlsx-percentages-with-divider branch from 51fe61f to 0c1795a Compare May 8, 2020 08:26
@MaxyMoos MaxyMoos marked this pull request as ready for review May 8, 2020 08:40
Copy link
Member

@sbidoul sbidoul left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link

@HaraldPanten HaraldPanten left a comment

Choose a reason for hiding this comment

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

I think it should be OK too 👍

@sergiocorato
Copy link

@sbidoul merge?

@sbidoul
Copy link
Member

sbidoul commented Aug 28, 2020

/ocabot merge

@OCA-git-bot
Copy link
Contributor

Hi @sbidoul. Your command failed:

Required option bumpversion_mode for command merge. Possible values : major, minor, patch, nobump.

Ocabot commands

  • ocabot merge major|minor|patch|nobump

More information

@sbidoul
Copy link
Member

sbidoul commented Aug 28, 2020

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 10.0-ocabot-merge-pr-300-by-sbidoul-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 422592a into OCA:10.0 Aug 28, 2020
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at fc36a7c. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants