-
-
Notifications
You must be signed in to change notification settings - Fork 864
[18.0][FIX] report_xlsx #1095
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
[18.0][FIX] report_xlsx #1095
Conversation
…r on OCA Financial Reports.
micheledic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This bug blocks this PR OCA/account-financial-reporting#1413
|
But reverting this will undo the feature. This should instead fix the root cause, isn't it? |
I tried this PR and the xls report works , imho can be merged to fix the issue |
|
Yeah, but the reason why it was put initially will come to not be resolved, so that's why I say that this should fix the problem without losing the feature. |
|
@alvaroGC-S73 i just checked and it may be enough to remove those line and the xlsx report works Or we have to push a PR to odoo core because the issue is caused on this line: Of docids is passed, the date is not passed correctly |
|
In my opinion this PR should be merged ASAP because it fixes a breaking error. The feature that was introduced in d931ea7 was not fixing an error |
I agree that the fix proposed here works, at least when we try to export the financial reports. But not sure if it breaks something else. |
|
OK, let's revert it and let @DucTruongKomit to propose an alternative solution to his problem. /ocabot merge patch |
|
Hey, thanks for contributing! Proceeding to merge this for you. |
|
Congratulations, your PR was merged at a602ffd. Thanks a lot for contributing to OCA. ❤️ |
|
I created fwport #1099 @pedrobaeza |
PR to Revert: #1057
Error to solve:
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/src/oca/reporting-engine/report_xlsx/controllers/main.py", line 65, in report_download
response = self.report_routes(
..........
File "/opt/odoo/src/oca/account-financial-reporting/account_financial_report/report/abstract_report.py", line 167, in _get_report_values
wizard = self.env[data["wizard_name"]].browse(data["wizard_id"])
KeyError: 'wizard_name'
The core issue is that the new JavaScript code introduced a bug: while attempting to fix context propagation for XLSX reports, it broke the standard method for passing wizard data (wizard_name, wizard_id). The old JS correctly serialized the essential action.data into the URL as an option query parameter, which the OCA backend modules rely on to find the wizard instance and generate the report.