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

crash when using include_subreport() #76

Open
alexis-via opened this issue Jan 4, 2016 · 6 comments
Open

crash when using include_subreport() #76

alexis-via opened this issue Jan 4, 2016 · 6 comments

Comments

@alexis-via
Copy link
Contributor

On odoo v8 with aeroo_reports master branch, when you try to print an aeroo report that use an include_subreport directive, you get a crash:

  File "/home/erp/erp/aeroo/report_aeroo/report_aeroo.py", line 295, in odt_subreport
    service = report.interface.report_int._reports['report.%s' % name]
UnboundLocalError: local variable 'report' referenced before assignment
alexis-via added a commit to akretion/aeroo_reports that referenced this issue Jan 4, 2016
…t_doc('/tmp/aeroo­report­9cUxMb.odt')> in the PDF !
@jjscarafia
Copy link
Contributor

Hi @alexis-via , have you been able to solve this issue? I'm facing same problem, it still displays "<insert_doc.."

Thanks!

@sraps
Copy link
Contributor

sraps commented Feb 10, 2018

@jjscarafia Make sure you have connection to OO service.

@aeroo aeroo deleted a comment from alexis-via Feb 10, 2018
@jjscarafia
Copy link
Contributor

Hi! Thanks you both!
@sraps what do yo mean? How can I test it? aeroo-docs is working on a docker container, pdf conversion is working. Soffice is being launched with headless mode.
This is the docker image: https://github.com/ingadhoc/docker-aeroo-docs/blob/master/supervisord.conf

Another thing, any plan to migrate to v11? We would like to invest on it.

Thanks!

@sraps
Copy link
Contributor

sraps commented Feb 10, 2018

This usually happens when soffice is not running and something went wrong in aeroo, so that it does not know that soffice is not there anymore. Still if you say that there is nothing wrong with soffice... At the moment have no idea about what's wrong.

What concerns migrating to odoo v11, I am nothing against that. The only obstacle is funding. If some interesting parties would agree to donate funds towards it, I have spare time to do the job.

@sraps
Copy link
Contributor

sraps commented Feb 10, 2018

@jjscarafia Are you using aeroo_docs? If you're, the I have to bad news, it does not support sub-reports.

@jjscarafia
Copy link
Contributor

@sraps yes, using aeroo_docs :(
I will write to you to see if we can collaborate on migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants