[IMP] report_async 14.0#611
Conversation
|
Hi @kittiu, |
|
Can you describe what are the improvements? Also add them in the readme. |
|
IMO this functionality could be split to an specific module, something like |
|
@kittiu The functionality is to generate reports async directly from the form view itself, and not have to go into the "Report Center" specifically to do it. So you press Print, you get a popup asking you if you want to run it Async, and then to verify the email address that it should be sent to. @HviorForgeFlow I don't know if splitting it into a separate module |
|
@KKamaa Maybe you can update the readme and/or post a small GIF |
|
@kittiu @thomaspaulb I added the sample and additional info to readme.rst as show -> How It Works <-: |
|
@thomaspaulb About the codecov part, it is already covered on the JS tests since we are testing the UI dialog and eventually we fill the to_email which is assigned to |
|
@KKamaa first of all, thanks for creating this. I was wanted this kind of feature before but lack of JS knowledge. Following are my reviews, First of all, I think this feature should be separated module, i.e., Comment about this feature itself.
|
|
@kittiu Why "no relation" ? I thought it is just the same feature but managed from the report center instead of on the record. I also reuse the same function for emailing the report from original module. Maybe I don't understand what the report center is for? What is the reason to make it separated? |
To me, the user experiences is very much different between
VS
The only thing being reused is email template, and the fact that it is async. May be others who might have known this module can share their opinion too. |
I just happen to read this comment. I think I see the same thing. Just the module naming to be decided. |
|
If a new module, then the naming does not fit because the point of the new code is to make it easier for users to print a long running report directly from where they would normally call it. So i would call it "report_async_dialog". Then on the dialog we could also have a checkbox to say that the report should be downloadable as an attachment to the record. I will study the module in more detail it just seem the same functionality with another type of interface. |
|
@kittiu If we add the option to save the attachment to the record as an extra feature in the dialog, would that be a good enough compromise to let you accept it to merge it to the main module? Separating it would be some extra work that we would avoid if possible, but if you insist on it, we can do it |
@thomaspaulb ok then, thanks for your effort! |
| default=100, | ||
| help="Min no of records to use async report functionality; e.g 100+", | ||
| ) | ||
| async_mail_recipient = fields.Char( |
There was a problem hiding this comment.
Just idea, should this be the many2many TO: filed like in Send Email wizard?
There was a problem hiding this comment.
the idea was not to have restrict to system users it can be used with emails where the user is not existing on the system. Also the char field is feed directly on the send_mail values as email_to. This allows comma separated emails, so you can just add a list of emails but separated with comma. e.g
oca@oca.com, tom@oca.com, jane@@usarmy.mil
|
@KKamaa great module! P.S. Please rebase for fix the runboat issue |
I was hoping to get it merged soon only issue is the codecov part but everything is ok |
|
Is there even a runboat issue? Runboat looks green. |
@thomaspaulb yup, just try with rebase |
|
@KKamaa please rebase, I cant do that in your repository |
a44fa25 to
65e4a41
Compare
|
@thomaspaulb @elvise I did a rebase with OCA 14.0 |
hi @thomaspaulb , is this feature present in the current version? |
@francesco-ooops I'm currently adding it, will update the functionality today |
|
@kittiu @thomaspaulb @francesco-ooops did a rebase with OCA 14.0 and added the ability to save attachment on the record through checker. It will also do message_post of the attachment if message post is set via mail thread model. |
| } | ||
| ) | ||
| if hasattr(record, 'message_post'): | ||
| record.message_post(attachment_ids=[attachment.id]) |
There was a problem hiding this comment.
I'm not 100% sure but I think in some cases this might require a sudo, anyway it wouldn't hurt
There was a problem hiding this comment.
@thomaspaulb added the sudo just in case
fdbc931 to
1a344c5
Compare
|
@KKamaa hi, I was trying to do a functional review on runboat, but I can't seem to find the most basic features on the module (please note I don't know this module at all) From usage file:
where do I access this menu on runboat? dev mode is activated |
@KKamaa gentle reminder :) |
@francesco-ooops so you can checkout runbot test then try as below, see sample of test |
| *Print*, you will get a popup asking you if you want to run it Async, and then to verify the email | ||
| address that it should be sent to. See below sample: | ||
|
|
||
| .. image:: https://raw.githubusercontent.com/OCA/reporting-engine/14.0/report_async/static/description/sample.gif |
There was a problem hiding this comment.
I think this should be just ../static/description/sample.gif
francesco-ooops
left a comment
There was a problem hiding this comment.
functional review ok!
I think it could be improved to add user email in report popup (if I'm generating the report, I'm probably the recipient) without having to type it everytime, but it's not blocking
@thomaspaulb @kittiu could you review? thanks!
|
I'm still trying to evaluate if behavior is correct, but it's not really clear to me what is the standard behavior of report_async (not being able to test job queue on runboat does not help) please check this video :
@kittiu @thomaspaulb can you help me understand the base flow of the module? |
|
@kittiu @thomaspaulb @KKamaa gentle reminder :) |
Hello, I have seen the video. What you are choosing as the report is the Action to open Sales Order, which mean, when you click the button it will then open the Sales Order list. After that, it is just the normal Sales Order list. You should select only Report Action. So, the aim of this module is to print the long running report, not the form. But if you want to print the form in background, @thomaspaulb has add the option to do so, but not through Report Center. And I think you only do in the form view, if I am not mistaken. Quoted here, By the way, if you are ok, I think this IMP can be merged by the maintainer? |
|
@kittiu can you approve too? :) |
|
@thomaspaulb good for you? |
|
@OCA/reporting-engine-maintainers gentle reminder :) |
|
/ocabot merge minor |
|
This PR looks fantastic, let's merge it! |
|
Congratulations, your PR was merged at 0fbe444. Thanks a lot for contributing to OCA. ❤️ |


@thomaspaulb @kittiu I hope we can now add the improvements? Tom should we use this MR?