Skip to content
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

Issue while print XLSX #23

Open
rached-boubaker opened this issue Nov 10, 2021 · 7 comments
Open

Issue while print XLSX #23

rached-boubaker opened this issue Nov 10, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@rached-boubaker
Copy link

rached-boubaker commented Nov 10, 2021

Hello ,
Thanks for this amazing module ,
I need to use this option while print a report xlsx but I can please any help for odoo V11 ?

@gmarczynski
Copy link
Owner

Can you give more details about the issue? Ideally the configuration, reproductuon steps and the undesired bahavoir.

@rached-boubaker
Copy link
Author

Hi gmarczynski ,
I have a report xlsx take much time to be downloaded ,I using this odoo standard method :
@api.multi
def print_xls_report(self):
data = {'ids': [self.id], 'form': self.read([])[0]}
return self.env.ref('module.report_xlsx').report_action(self, data=data)
When I click to the button print the sys run on background and take much time then print the report , I try to use this module to appear a waiting message but nothing happen .
Thanks.

@gmarczynski
Copy link
Owner

Hi Rached,
I looked into the problem and it is rather the module report_xlsx that needs to be fixed in order to make the progress reporting work.
Here is the updated version:
report_xlsx-11.0.1.0.6-fixed-for-web-progress.zip
I tested it with the example report and it worked OK.
Enjoy!

@rached-boubaker
Copy link
Author

@gmarczynski Thanks a lot .

@rached-boubaker
Copy link
Author

rached-boubaker commented Nov 14, 2021

@gmarczynski
I try it it's give me an output like attached file and this msg in log :
doo.addons.web_progress.models.web_progress: Progress fe95e079-9dca-42a5-9b43-312ba55ab2dc > 0.0% (0/317) Iterating on model Employee --> still with 0% and take too much time and nothing is happen.
Screenshot from 2021-11-14 22-19-17

@gmarczynski
Copy link
Owner

From the given screenshot I can see that you passed progress_iter by context. It should be OK, but it would be better just to use the with_progress, as I put into report_xlsx/report/report_xlsx.py:44

How much time does it take to generate a report for one record? The progress is reported only on every iteration step, so if it takes 5 minutes per record, the first progress will be shown only after 5 minutes.

Did you try to use debugger to see where the processing is stuck? It is always good to execute your code step-by-step to see where the execution is blocked.

I think that the help you need is beyond the progress bar itself. Good luck!

@rached-boubaker
Copy link
Author

@gmarczynski Thanks a lot ,I'll check it.

@gmarczynski gmarczynski added the enhancement New feature or request label Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants