ciao a tutti,
dopo aver fatto varie prove di personalizzazione del report degli ordini di acquisto (order.sxw modificato con openoffice) ed essere riuscito a fare molti miglioramenti, da questa mattina non riesco più a generare il report, con questo errore:
[2012-01-23 11:16:26,782][rrr] ERROR:web-services:[01]: Exception:
[2012-01-23 11:16:26,782][rrr] ERROR:web-services:[02]: Traceback (most recent call last):
[2012-01-23 11:16:26,782][rrr] ERROR:web-services:[03]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 724, in go
[2012-01-23 11:16:26,782][rrr] ERROR:web-services:[04]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2012-01-23 11:16:26,782][rrr] ERROR:web-services:[05]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 418, in create
[2012-01-23 11:16:26,783][rrr] ERROR:web-services:[06]: fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2012-01-23 11:16:26,783][rrr] ERROR:web-services:[07]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 481, in create_source_pdf
[2012-01-23 11:16:26,783][rrr] ERROR:web-services:[08]: return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2012-01-23 11:16:26,783][rrr] ERROR:web-services:[09]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 503, in create_single_pdf
[2012-01-23 11:16:26,783][rrr] ERROR:web-services:[10]: pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2012-01-23 11:16:26,783][rrr] ERROR:web-services:[11]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/interface.py", line 193, in create_pdf
[2012-01-23 11:16:26,783][rrr] ERROR:web-services:[12]: obj.render()
[2012-01-23 11:16:26,783][rrr] ERROR:web-services:[13]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/render.py", line 63, in render
[2012-01-23 11:16:26,783][rrr] ERROR:web-services:[14]: result = self._render()
[2012-01-23 11:16:26,784][rrr] ERROR:web-services:[15]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml.py", line 41, in _render
[2012-01-23 11:16:26,784][rrr] ERROR:web-services:[16]: return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
[2012-01-23 11:16:26,784][rrr] ERROR:web-services:[17]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 971, in parseNode
[2012-01-23 11:16:26,784][rrr] ERROR:web-services:[18]: r.render(fp)
[2012-01-23 11:16:26,784][rrr] ERROR:web-services:[19]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 303, in render
[2012-01-23 11:16:26,784][rrr] ERROR:web-services:[20]: pt_obj.render(el)
[2012-01-23 11:16:26,784][rrr] ERROR:web-services:[21]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 942, in render
[2012-01-23 11:16:26,784][rrr] ERROR:web-services:[22]: fis += r.render(node_story)
[2012-01-23 11:16:26,784][rrr] ERROR:web-services:[23]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 861, in render
[2012-01-23 11:16:26,784][rrr] ERROR:web-services:[24]: return process_story(node_story)
[2012-01-23 11:16:26,785][rrr] ERROR:web-services:[25]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 854, in process_story
[2012-01-23 11:16:26,785][rrr] ERROR:web-services:[26]: flow = self._flowable(node)
[2012-01-23 11:16:26,785][rrr] ERROR:web-services:[27]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 777, in _flowable
[2012-01-23 11:16:26,785][rrr] ERROR:web-services:[28]: return self._table(node)
[2012-01-23 11:16:26,785][rrr] ERROR:web-services:[29]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 681, in _table
[2012-01-23 11:16:26,785][rrr] ERROR:web-services:[30]: assert length == len(node.get('colWidths').split(','))
[2012-01-23 11:16:26,785][rrr] ERROR:web-services:[31]: AssertionError
[2012-01-23 11:16:27,744][rrr] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/netrpc_server.py", line 70, in run
result = self.dispatch(msg[0], msg[1], msg[2:])
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 499, in dispatch
raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException
da cosa potrebbe essere causato ? ho verificato che:
1) gli altri report funzionano bene (tutti, incluso il report di richiesta preventivo)
2) l'errore ora viene fuori anche usando tutti i file originali (del report e non) del modulo purchase
3) nel DB, nelle tabelle purchase.order.* tutto sembra a posto
non so più dove guardare.. consigli ?
grazie in anticipo!
Lucio