-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
[9.0][ADD] Migrated business_requirement_deliverable_report module from v8 to v9 #31
[9.0][ADD] Migrated business_requirement_deliverable_report module from v8 to v9 #31
Conversation
👍 (waiting for #25 to be merged) |
Introduction | ||
============ | ||
|
||
This module is part of a set of modules (`Business Requirements <https://github.com/OCA/business-requirement/blob/8.0/README.md>`_) |
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.
9.0
'report/report.xml', | ||
], | ||
'image': [ | ||
'static/img/bus_req_report1.png', |
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.
add the icon
Add Test Case in printable report (as it is in V8)
Update report_business_requirement.xml
…o 9.0-migrate_business_requirement_deliverable_report
Rebased the PR. |
@sudhir-serpentcs tested functionally. 3 small details for improvements in the 3 reports:
|
@elicoidal Thanks for you feedback. I will do the needful.
Do you mean by report name or attachment name of the report? |
@sudhir-serpentcs I mean attachment name of the report, thanks for pointing out |
… generated reports.
@elicoidal Added file attachment option and its name for the generated reports. |
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.
Not sure what was done but runbot says it is not working ;).
My downloaded attachments have respectively the names:
- "Business Requirement Report.pdf",
- "Business Requirement Deliverable Report.pdf" and
- "Business Requirement Deliverable Resource Report.pdf"
Did I miss something?
Besides following issues are not yet attended (you plan them for later?):
- there is a big gap between the header and the start of the page ("Business Requirement Document" text). Not sure this is not due to standard Odoo header spacing. Please confirm whether you can improve or not (simple spacing is enough)
- The spacing between "Business Requirement Document" and "BR000001-test" is too big. "BR000001-test" should be centered below "Business Requirement Document"
(check example in Runbot)
name="business_requirement_deliverable_report.br_report" | ||
file="business_requirement_deliverable_report.br_report" | ||
attachment_use="True" | ||
attachment="((object.name+object.description)+'.pdf')" |
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.
following the logic below: "'BR- '+((object.name+object.description)+'.pdf')"
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.
@elicoidal Done
@sudhir-serpentcs Any news on this front? |
392e40f
to
7a895e0
Compare
@elicoidal Done. Please review. |
@sudhir-serpentcs thanks for the update.
OK!
You can reduce the space between "Business Requirement Document" and "BR000001-test" to half the current size.
The naming of the files is still incorrect when you save them. |
@sudhir-serpentcs any feedback here? |
@elicoidal Thanks Eric. Please check my previous comment for having report name. |
@sudhir-serpentcs I saw your comment and agree. go ahead |
… in Report Attachment option.
@elicoidal Added code (controller) for the dynamic report name but you know we don't know how to make UT for controllers and that has reduced the codecov. |
@sudhir-serpentcs I think we can live with the decrease coverage for the moment. |
To be ported to v8 and v10 |
Do we really need to extend the Report generation controller? Do we really need to customize the output file name? |
Not sure why this is bad practice. What I know is that when you have a project with dozens of BR, you want to have all of them properly identified and I currently spend manual time just to adapt that. |
@elicoidal The feature is good. For me these are two distinct features. |
@sudhir-serpentcs |
@sudhir-serpentcs @elicoidal AFAICS the report file naming feature is universal and not specific to BRs. I think it should be proposed to https://github.com/OCA/reporting-engine. |
Fine by me: I have no clue about naming though (base_filename?) |
@sudhir-serpentcs when refactored (removed the controller part), please port this module to v8 and v10 |
@elicoidal Ok I will separate the report file naming feature (controller) in a new module (report_base_filename). Should I propose the PR in https://github.com/OCA/reporting-engine repo? |
@sudhir-serpentcs go ahead |
@elicoidal Removed the code to have dynamic report name. I will add the reference of the PR that will have dynamic report name feature. |
Please find the PR here OCA/reporting-engine#114 which will help to have the |
@dreispt can we move forward and merge this PR? |
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 your patience!
PS: Reading the discussion at OCA/reporting-engine#114, I'm now sure that doing the separation was the right thing to do. |
@dreispt indeed thanks for your help :) |
WIP until #25 and #26 is mergedMigrated business_requirement_deliverable_report module from v8 to v9.
@dreispt @pedrobaeza @jbeficent @moylop260 Please review.