report-openoffice-team team mailing list archive
-
report-openoffice-team team
-
Mailing list archive
-
Message #00002
[Bug 498716] Re: Adding new reports
Hi amaza,
please, try to tell clearly what you've done.
"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)"
This is not clear.
BTW, this error "raise 'Unknown Report Type'" means that a wrong report
type has been set. So, first check this.
Moreover it seems you are using and old release since from the last push
I made the exception which should be raised is "ReportTypeException".
** Changed in: report-openoffice
Status: New => Incomplete
** Changed in: report-openoffice
Assignee: (unassigned) => Simone Orsi - Domsense (simone-orsi)
--
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 subscribed to Report OpenOffice.
Status in OpenOffice.org Reporting Tool for OpenObject: Incomplete
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?
Follow ups