Vediamo dove sbaglio:
Per registrare un report di prova ad esempio un preventivo di vendita eseguo queste operazioni:
amministrazione -> personalizzazione -> oggetti a basso livello -> azioni -> report
creo un nuovo report con questi parametri:
nome:preventivo di vendita
oggetto: sale.order
nome del servizio: ordine.vendita
tipo report: odt
file report:l10n_it_sale_report/templates/ddt.odt (chiaramente questa è una prova ho preso il
report più veloce da scrivere).
Creo il pulsante per la stampa ma non ottengo nulla tranne un errore che sono sicuro sia dovuto ad una scorretta valorizzazione dei campi nome, oggetto, nome del servizio, tipo report e file report.
ERRORE DEL CLIENT:
File is not a zip file
(<class 'zipfile.BadZipfile'>, BadZipfile('File is not a zip file',), <traceback object at 0xb56b98c>)
ERRORE DEL SERVER:
[2011-05-31 13:27:54,883][demo] ERROR:web-services:[01]: Exception: File is not a zip file
[2011-05-31 13:27:54,883][demo] ERROR:web-services:[02]: Traceback (most recent call last):
[2011-05-31 13:27:54,884][demo] ERROR:web-services:[03]: File "/home/vincenzo/lp/openerp/server/bin/service/web_services.py", line 724, in go
[2011-05-31 13:27:54,884][demo] ERROR:web-services:[04]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2011-05-31 13:27:54,884][demo] ERROR:web-services:[05]: File "/home/vincenzo/lp/openerp/server/bin/report/report_sxw.py", line 428, in create
[2011-05-31 13:27:54,885][demo] ERROR:web-services:[06]: fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2011-05-31 13:27:54,885][demo] ERROR:web-services:[07]: File "/home/vincenzo/lp/openerp/server/bin/report/report_sxw.py", line 434, in create_source_odt
[2011-05-31 13:27:54,885][demo] ERROR:web-services:[08]: return self.create_single_odt(cr, uid, ids, data, report_xml, context or {})
[2011-05-31 13:27:54,886][demo] ERROR:web-services:[09]: File "/home/vincenzo/lp/openerp/server/bin/report/report_sxw.py", line 530, in create_single_odt
[2011-05-31 13:27:54,886][demo] ERROR:web-services:[10]: sxw_z = zipfile.ZipFile(sxw_io, mode='r')
[2011-05-31 13:27:54,886][demo] ERROR:web-services:[11]: File "/usr/lib/python2.6/zipfile.py", line 696, in __init__
[2011-05-31 13:27:54,887][demo] ERROR:web-services:[12]: self._GetContents()
[2011-05-31 13:27:54,887][demo] ERROR:web-services:[13]: File "/usr/lib/python2.6/zipfile.py", line 716, in _GetContents
[2011-05-31 13:27:54,887][demo] ERROR:web-services:[14]: self._RealGetContents()
[2011-05-31 13:27:54,887][demo] ERROR:web-services:[15]: File "/usr/lib/python2.6/zipfile.py", line 728, in _RealGetContents
[2011-05-31 13:27:54,888][demo] ERROR:web-services:[16]: raise BadZipfile, "File is not a zip file"
[2011-05-31 13:27:54,888][demo] ERROR:web-services:[17]: BadZipfile: File is not a zip file
Grazie per il supporto