report-openoffice-team team mailing list archive
-
report-openoffice-team team
-
Mailing list archive
-
Message #00007
[Bug 498716] Re: Adding new reports
The problem is solved with the last trunk version... thanks to the
Parser tab in XML Report definition... this defines the behaviour for
Reportoffice pdf
There is some problem with generating odt...(cherrypy error <type
'exceptions.KeyError'>: u'odt' ), pdf is ok.
** Changed in: report-openoffice
Status: Incomplete => Fix Committed
--
Adding new reports
https://bugs.launchpad.net/bugs/498716
You received this bug notification because you are a member of Report
OpenOffice Team, which is the registrant for Report OpenOffice.
Status in OpenOffice.org Reporting Tool for OpenObject: Fix Committed
Bug description:
First of all, thanks for this great module Davide...
When I add a new report, I have this error in the server
/usr/local/lib/python2.5/site-packages/openerp-server/report/report_sxw.py:373: DeprecationWarning: raising a string exception is deprecated
raise 'Unknown Report Type'
Unhandled exception in thread started by <function go at 0x9968f44>
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 630, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/usr/local/lib/python2.5/site-packages/openerp-server/report/report_sxw.py", line 373, in create
For using this new odt, apart from creating the XML report entry in Actions->Report Openoffice, and creating the tricky Client Action Connections using the id of the report XML (and I see the report only in Invoices, not in Customer Invoices.... I don't know what is the problem), I need modify the report_samples.py
OpenOffice_parser('report.report_openoffice_samples.account_invoice_newreport',
'account.invoice',
'addons/report_openoffice_samples/templates/invoice_newreport.odt',
parser=account_invoice,
)
After this all work fine.
There is a simpler way to do this?