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

[16.0][MIG] report_xlsx: Migration to 16.0 #690

Merged
merged 68 commits into from
Dec 4, 2022

Conversation

RodrigoBM
Copy link
Contributor

pr alternative to the original pr #654

Add this comment #654 (review)

cc: @baimont @maq-adhoc @JoanSForgeFlow

adrienpeiffer and others added 30 commits November 30, 2022 12:46
…s to print to the 'create_xlsx_report' method + Instanciate the parser and make it available for the 'generate_xlsx_report' method
* refactor: On new ActionManager override _makeReportUrls and triggerDownload to support XLSX format
* pass action to custom _downloadReportXLSX: Need action to get report data
* dict constructor to remove context lang
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Currently translated at 88.2% (15 of 17 strings)

Translation: reporting-engine-12.0/reporting-engine-12.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_xlsx/de/
Currently translated at 94.4% (17 of 18 strings)

Translation: reporting-engine-12.0/reporting-engine-12.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_xlsx/pt/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-13.0/reporting-engine-13.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-report_xlsx/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-13.0/reporting-engine-13.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-report_xlsx/
@RodrigoBM RodrigoBM changed the title 16.0 mig report xlsx ape [MIG] Migrate report_xlsx to 16.0 Nov 30, 2022
@RodrigoBM RodrigoBM mentioned this pull request Nov 30, 2022
15 tasks
@RodrigoBM RodrigoBM force-pushed the 16.0-mig-report_xlsx-ape branch from e85c6f1 to ca1d627 Compare December 2, 2022 17:10
@FernandoRomera
Copy link

@pedrobaeza Hi Pedro, can you merge this PR please?

@pedrobaeza pedrobaeza changed the title [MIG] Migrate report_xlsx to 16.0 [16.0][MIG] report_xlsx: Migration to 16.0 Dec 4, 2022
@pedrobaeza
Copy link
Member

/ocabot migration report_xlsx
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Dec 4, 2022
@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-690-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 2ca0859 into OCA:16.0 Dec 4, 2022
@OCA-git-bot
Copy link
Contributor

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

@alexis-via
Copy link
Contributor

I think we have a mistake here: in v16, the proto of report_download has changed it is now report_download(self, data, context=None, token=None)

https://github.com/odoo/odoo/blob/16.0/addons/web/controllers/report.py#L90

In report_xlsx, the proto is still report_download(self, data, context=None)
https://github.com/OCA/reporting-engine/blob/16.0/report_xlsx/controllers/main.py#L52

@alexis-via
Copy link
Contributor

Here is the kind of warning that you get due to this:

2022-12-12 19:51:28,599 62671 WARNING o6_test1 odoo.http: <function odoo.addons.report_xlsx.controllers.main.report_download> called ignoring args {'token'}

@pedrobaeza
Copy link
Member

Can you please fix it or @RodrigoBM?

@alexis-via
Copy link
Contributor

ok, I'll try to find time to make a PR

@alexis-via
Copy link
Contributor

PR here: #699

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.