-
-
Notifications
You must be signed in to change notification settings - Fork 349
[18.0][REF][ADD] mis_builder_report_xlsx #728
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
Conversation
|
Hi @sbidoul, |
a320ff0 to
c6823a6
Compare
sbidoul
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.
Thanks for this, Sylvain. I'm fine with extracting that part if you think it's useful.
It looks good to me overall. I have not verified all the code was moved correctly but I found one suspicious thing. See the comments.
|
|
||
| xmlid_renames = [ | ||
| ("mis_builder.xls_export", "mis_builder_report_xlsx.xls_export"), | ||
| ] |
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.
Is this not done automatically?
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.
if the original database is :
id | name | type
-----+---------------------------------------------+-------------------
288 | {"en_US": "MIS report instance XLS report"} | ir.actions.report
With that script:
- during update
2025-09-25 09:25:36,222 71906 DEBUG mis_builder_v1 OpenUpgrade: 1 rows affected after 0:00:00.000510 running UPDATE ir_model_data SET module = 'mis_builder_report_xlsx', name = 'xls_export' WHERE module = 'mis_builder' and name = 'xls_export'
- in database, after the update
id | name | type
-----+---------------------------------------------+-------------------
288 | {"en_US": "MIS report instance XLS report"} | ir.actions.report
Without that script
- during update
2025-09-25 09:30:18,601 72300 INFO mis_builder_v2 odoo.addons.base.models.ir_model: Deleting 288@ir.actions.report (mis_builder.xls_export)
- in database, after the update
id | name | type
-----+---------------------------------------------+-------------------
289 | {"en_US": "MIS report instance XLS report"} | ir.actions.report
So it can be usefull if this action was referenced in some action_id field.
(It's maybe quite theoritical, but it's an OpenUpgrade good practice)
| SRC_ACTUALS = "actuals" | ||
| SRC_ACTUALS_ALT = "actuals_alt" | ||
| SRC_CMPCOL = "cmpcol" | ||
| SRC_SUMCOL = "sumcol" | ||
|
|
||
| MODE_NONE = "none" | ||
| MODE_FIX = "fix" | ||
| MODE_REL = "relative" |
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.
Why are these constants here?
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.
Good catch. Totally useless. Removed.
| " that allow to export MIS report in XSLX format.", | ||
| "version": "18.0.1.0.0", | ||
| "license": "AGPL-3", | ||
| "author": "ACSONE SA/NV, GRAP, Odoo Community Association (OCA)", |
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.
Do feel it's important to add GRAP as author here. In a way it is not "new" as it is shuffling code around.
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.
Sorry, I don't understand. Do you want me to remove GRAP, or not?
Personally, I usually add my company name when I spend a significant amount of time on a module. (development, refactoring, etc.)
But it's a matter of taste, so tell me what to do!
pedrobaeza
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.
I think this should be done in 19, not in this version.
Hi @pedrobaeza. Thanks for your answer ! In fact, this PR is, for the time being, just a PoC I did regarding the proposal present in #726. As a result, my question here is ONLY "in an ideal world, Do you think it's better to split modules, or to keep a single big one ?". Could you so give your PoV on the other main issue ? |
|
Although the excel export requires the extra dependency, we already have it also on account_financial_report, so for me it's not critical to split it, and I will always install both. |
Hi. I didn't make myself clear. I wanted you to comment on the other issue #726. thanks. |
e4fdc2d to
a6330c6
Compare
|
Thinking about this again I now have some doubts. For instance, when the annotations feature was added it was added on the html, pdf and xlsx formats at once. That is very hypothetical of course, but I worry a bit that the different parts would then evolve at a different speed and therefore lead to a less cohesive result. |
a6330c6 to
4bf9e8e
Compare
|
Hi @sbidoul. Well, I think that each design has its limitations.
Finally, It's up to you ! You are the chief architect of this repository ! Please let me know your decision. |
…module Co-authored-by: Stéphane Bidoul <stephane.bidoul@acsone.eu>
4bf9e8e to
e286a33
Compare
|
Hi @sbidoul. could you finalize your review here :
Migration to V19 begin to be done. This work is starting to get moldy ;-) Thanks ! |
|
I'm going to close this, as I think XLSX export is an integral part of the core MIS Builder app. Thanks for your patience and sorry for the hesitation. |
|
Thanks for your answer, @sbidoul. Regarding my last PR on mis-builder, could you take a time to answer to that question when you have time ? thanks ! #732 (comment) |
Creation of
mis_builder_report_xlsxmis_builder, creatingmis_builder_report_xlsxmis_builder.xls_exporttomis_builder_report_xlsx.xls_exportmis_builder_report_xlsxcloc of mis_builder
Before :
After :
Description
This module improves the MIS Reports modules, allowing to download MIS Reports in XLSX format.
Usage
@sbidoul : what do you think ?
Regards.