-
Notifications
You must be signed in to change notification settings - Fork 289
[16.0][MIG] controller_report_xls: Migration to 16.0. t#87779 #1700
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
Merged
luisg123v
merged 41 commits into
Vauxoo:16.0
from
vauxoo-dev:16.0-migrate_controller_report_xls_from_15_to_16-CDanielSanSeg
Jul 11, 2025
Merged
[16.0][MIG] controller_report_xls: Migration to 16.0. t#87779 #1700
luisg123v
merged 41 commits into
Vauxoo:16.0
from
vauxoo-dev:16.0-migrate_controller_report_xls_from_15_to_16-CDanielSanSeg
Jul 11, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hugho-ad
approved these changes
Jul 2, 2025
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 👍
Please fix PR title. |
@luisg123v |
luisg123v
requested changes
Jul 3, 2025
Missing task ID on PR title |
… funcion, to avoid mistake for minimal changes in their values
… the url to create the reports
Trying to fix this pylint errors. cmd: [u'/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/35660-8-0-8-0-lo/pylint_run.sh'] �[7;33m************* Module openerp.addons.controller_report_xls.controllers.main�[0m openerp.addons.controller_report_xls.controllers.main:2: [F0401(�[1;4;31mimport-error�[0m), ] �[1;4;31mUnable to import 'openerp.addons.web.http'�[0m openerp.addons.controller_report_xls.controllers.main:3: [E0611(�[1;31mno-name-in-module�[0m), ] �[1;31mNo name 'url_decode' in module 'werkzeug'�[0m
need to be translated into excel as a cell
…descriptor to a README.md file.
…count the README.md description an a predefined module descriptor footer (Footer includes an image with Vauxoo Large Logo. This was created using an script Vauxoo/gist-vauxoo/description2html.
… Vauxoo Logo. This was apply using the script Vauxoo/gist-vauxoo/description2html.
…ence. [IMP] .version.py now works with ReGex
… which image is reference from aws.
…scription at index.html file
…re that odoo apps refresh the new index.html description
- [REF] aging_due_report: Migration to new api, small fixes - [IMP] controller_report_xls: take in consideration thead, tbody, map some the styles from css to xfstyle
When the node had a style like "background-color: #99CCFF; font-weight: bold;" the style that comes after the "; " (with the white-space after the ;) was not being found on the method `css2excel`. That happened because the `get_odoo_style` returned the styles like: `{'background-color': '#99CCFF', ' font-weight': 'bold'}` and the `process_css` didn't find ' font-weight' in its keys. So now cleaning the values on the `get_odoo_style` by removing the whitespaces from the beginning and the end of the string, the method will now return `{'background-color': '#99CCFF', 'font-weight': 'bold'}` and the `process_css` will find 'font-weight' in its keys.
Before this change there was a traceback when a `font-size` was added: ```python File "/usr/local/lib/python3.8/dist-packages/xlwt/BIFFRecords.py", line 725, in __init__ self._rec_data = pack('<5H4B%ds' % uname_len, height, options, colour_index, weight, escapement, Exception The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/odoo/instance/odoo/odoo/http.py", line 654, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/home/odoo/instance/odoo/odoo/http.py", line 301, in _handle_exception raise exception.with_traceback(None) from new_cause struct.error: required argument is not an integer ``` That happened because the `height` expected for the fonts is an integer value and the `get_font_height` was returning `float` values, for example: "125.0", now we are rounding the new size to 0 decimals to return the closest integer for that size.
- Updated __manifest__.py: set license to LGPL-3, switched to HTTPS for URL, removed unnecessary keys. - Removed outdated copyright header from main controller. - Refreshed es.po with current project metadata. - Deleted redundant translation files (es_ES, es_MX, es_PA, es_VE) to avoid duplication.
- Fix undefined variable 'cssstyle' in get_css_style function - Fix undefined variable 'result' in match_color_index function - Improve string comparison using truthiness instead of empty string check
- Remove controllers/main.py, as the controller logic has been consolidated into reports/report_xls.py. - Update imports to reflect the new structure. - Modernize the codebase while maintaining backward compatibility for XLS report generation.
f4697cd
to
8022237
Compare
@luisg123v can you check this MR? |
8022237
to
3df6a70
Compare
Because it's required by the module `controller_report_xls`.
3df6a70
to
ca54b9c
Compare
comments Done |
luisg123v
approved these changes
Jul 11, 2025
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 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[MIG] controller_report_xls: Migration to 16.0