Ho modificato il tipo dell'"ordine fornitore", ma ecco un nuovo errore nel tentativo di aprire il report:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 687, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/report_openoffice.zip/report_openoffice/report_openoffice.py", line 269, in create
return fnct(cr, uid, ids, data, report_xml, context)
File "/usr/lib/python2.5/site-packages/openerp-server/report/report_sxw.py", line 421, in create_source_pdf
return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/report_openoffice.zip/report_openoffice/report_openoffice.py", line 215, in create_single_pdf
return self.create_relatorio_report(cr, uid, ids, data, report_xml, context=context, output='pdf')
File "/usr/lib/python2.5/site-packages/openerp-server/addons/report_openoffice.zip/report_openoffice/report_openoffice.py", line 193, in create_relatorio_report
data = basic.generate(**oo_parser.localcontext).render().getvalue()
File "/usr/lib/python2.5/site-packages/relatorio-0.5.3-py2.5.egg/relatorio/templates/base.py", line 36, in render
return self.serializer(self.events)
File "/usr/lib/python2.5/site-packages/relatorio-0.5.3-py2.5.egg/relatorio/templates/opendocument.py", line 708, in __call__
for kind, data, pos in stream:
File "/var/lib/python-support/python2.5/genshi/template/markup.py", line 245, in _match
for event in stream:
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 543, in _exec
for event in stream:
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 496, in _eval
for kind, data, pos in stream:
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 558, in _flatten
for event in self._flatten(substream, ctxt, **vars):
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 558, in _flatten
for event in self._flatten(substream, ctxt, **vars):
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 558, in _flatten
for event in self._flatten(substream, ctxt, **vars):
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 551, in _flatten
for event in stream:
File "/var/lib/python-support/python2.5/genshi/template/directives.py", line 175, in _generate
attrs = _eval_expr(self.expr, ctxt, **vars)
File "/var/lib/python-support/python2.5/genshi/template/base.py", line 286, in _eval_expr
retval = expr.evaluate(ctxt)
File "/var/lib/python-support/python2.5/genshi/template/eval.py", line 180, in evaluate
return eval(self.code, _globals, {'__data__': data})
File "/tmp/openoffice-report-SOmCLk.odt", line 1, in <Expression u"{'{urn:oasis:names:tc:opendocument:xmlns:office:1.0}value': str('%.0f' % ((line.taxes_id[0].amount)*100))+'%', '{urn:oasis:names:tc:opendocument:xmlns:office:1.0}value-type': __relatorio_guess_type(str('%.0f' % ((line.taxes_id[0].amount)*100))+'%')}">
...
File "/var/lib/python-support/python2.5/genshi/template/eval.py", line 330, in lookup_item
return obj[key]
IndexError: list index out of range
Ho dovuto omettere dei caratteri "strani"(...), in binari probabilmente per non avere problemi a rispondere nel forum.