report-openoffice-team team mailing list archive
-
report-openoffice-team team
-
Mailing list archive
-
Message #00003
Re: [Bug 498716] Re: Adding new reports
Hi Simone.
Thanks for the fast response.
I'll try detail more the problem.
When I try to do a new report from scratch (Invoice two), I've to do the
next:
1.-Create the report from the Admin->Low Level->Actions->Report Openoffice
(copying from the original, Invoices by example)
2.- After this I connect the report to an object (account.invoice)
Admin->Low Level->Client Actions Connection
I already see the report in Invoices at the right.
But I've the error 'Unknown Report Type', I think because the system ignores
the type of object (report_sxw instead of Openoffice_Parser).
3.-Once created the instance of Openoffice_Parser, all is ok
I modify report_samples.py adding the next lines:
OpenOffice_parser('report.report_openoffice_samples.account_invoice_newrepor
t', 'account.invoice',
'addons/report_openoffice_samples/templates/invoice_newreport.odt',
parser=account_invoice,
)
I shutdown server, and upgrade the module report_openoffice_samples...
Is there an easier way?
Also I've seen that the report appears in the Invoice, but not in the
Customer Invoices, or Supplier Invoices, have you deal with this??
Saludos.
Angel Maza.
t. 654095413
f. 901955109
@. amaza@xxxxxxxxx
www www.prodeo.es
-----Mensaje original-----
De: bounces@xxxxxxxxxxxxx [mailto:bounces@xxxxxxxxxxxxx] En nombre de Simone
Orsi - Domsense
Enviado el: lunes, 21 de diciembre de 2009 9:16
Para: amaza@xxxxxxxxx
Asunto: [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 direct subscriber
of the bug.
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:3
73: 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_newrepor
t',
'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?
To unsubscribe from this bug, go to:
https://bugs.launchpad.net/report-openoffice/+bug/498716/+subscribe
--
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?
References