Could anybody provide me with a guide/demo/tutorial about Jasper reports in Odoo V8?
I found the source code for V8 here: https://github.com/JayVora-SerpentCS/Jasperv8
The module installed without any problems and under settings > Technical I have two new items for Jasper reports.
From here on I am clueless though. If I understand this correctly you make an XML which specifies the model through 'Create Data Template'? But what then?
There are no tutorials or guides to be found and especially not for Odoo V8. Could anybody help me out here?
Update: I found out there is demo data in this module. When you create a new database with the option for demo data ticked on you can see this under settings > Users. This directly throws up an error when you want to print though:
2015-02-27 12:54:05,204 9529 WARNING JasperReports openerp.pooler: openerp.pooler.get_db_and_pool() is deprecated.
2015-02-27 12:54:05,210 9529 INFO JasperReports openerp.addons.jasper_reports.jasper_report: Requested report: '/odoo/odoo-server/addons/jasper_reports/demo/user.jrxml'
WARNING: path '' already exists in report. This is not supported by the module. Offending fields: name, login
2015-02-27 12:54:05,213 9529 INFO JasperReports openerp.addons.jasper_reports.jasper_report: Temporary data file: '/tmp/tmpdrkJYh'
2015-02-27 12:54:05,214 9529 WARNING JasperReports openerp.addons.jasper_reports.JasperReports.BrowseDataGenerator: Field '' (path: ) does not exist in model 'res.users'.
2015-02-27 12:54:05,238 9529 ERROR JasperReports openerp.service.report: Exception: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/odoo/odoo-server/openerp/service/report.py", line 93, in go
result, format = openerp.report.render_report(cr, uid, ids, object, datas, context)
File "/odoo/odoo-server/openerp/report/__init__.py", line 40, in render_report
return registry['ir.actions.report.xml'].render_report(cr, uid, ids, name, data, context)
File "/odoo/odoo-server/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/odoo/odoo-server/openerp/addons/base/ir/ir_actions.py", line 150, in render_report
return new_report.create(cr, uid, res_ids, data, context)
File "/odoo/odoo-server/addons/jasper_reports/jasper_report.py", line 265, in create
File "/odoo/odoo-server/addons/jasper_reports/jasper_report.py", line 150, in execute
pages = self.executeReport(dataFile, outputFile, subreportDataFiles)
File "/odoo/odoo-server/addons/jasper_reports/jasper_report.py", line 230, in executeReport
return server.execute(connectionParameters, self.reportPath, outputFile, parameters)
File "/odoo/odoo-server/addons/jasper_reports/JasperReports/JasperServer.py", line 100, in execute
File "/odoo/odoo-server/addons/jasper_reports/JasperReports/JasperServer.py", line 84, in start
process = subprocess.Popen(command, env=env, cwd=cwd)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
OSError: [Errno 2] No such file or directory
2015-02-27 12:54:05,455 9529 ERROR JasperReports openerp.addons.web.controllers.main: An exception occured during an http request
Traceback (most recent call last):
File "/odoo/odoo-server/addons/web/controllers/main.py", line 69, in wrap
return f(*args, **kwargs)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1570, in index
request.session.db, request.session.uid, request.session.password, report_id)
File "/odoo/odoo-server/openerp/http.py", line 807, in proxy_method
result = dispatch_rpc(self.service_name, method, args)
File "/odoo/odoo-server/openerp/http.py", line 100, in dispatch_rpc
result = dispatch(method, params)
File "/odoo/odoo-server/openerp/service/report.py", line 34, in dispatch
res = fn(db, uid, *params)
File "/odoo/odoo-server/openerp/service/report.py", line 141, in exp_report_get
File "/odoo/odoo-server/openerp/service/report.py", line 119, in _check_report
raise openerp.osv.orm.except_orm(exc.message, exc.traceback)
except_orm: (u'2\nNo such file or directory', (<type 'exceptions.OSError'>, OSError(2, 'No such file or directory'), <traceback object at 0x7fe10d0e4e60>))
With kind regards
Some helpful URLs:
Please see Please see : http://www.serpentcs.com/serpentcs-jasper-report-openerpodoo
We saw the report works well !
Just open the User's Form view and above the form view you will file "Jasper Users". This is the menu from where the demo reports being called and printed.
You will see the technical information in the "jasper_demo.xml" file. which is located in the "jasper_reports" folder.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/25/15, 8:27 AM|
|Seen: 6051 times|
|Last updated: 3/16/16, 9:37 AM|