La generazione di una fattura con report_openoffice restituisce il seguente errore:
AttributeError: 'function' object has no attribute 'ugettext'
qualche suggerimento? Non conosco il linguaggio python...
Trace completo:
Environment Information :
System : Linux-2.6.32-22-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:cxx-3.0-ia32:cxx-3.0-noarch:cxx-3.1-ia32:cxx-3.1-noarch:cxx-3.2-ia32:cxx-3.2-noarch:cxx-4.0-ia32:cxx-4.0-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch:desktop-4.0-ia32:desktop-4.0-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:graphics-3.1-ia32:graphics-3.1-noarch:graphics-3.2-ia32:graphics-3.2-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-3.2-ia32:printing-3.2-noarch:printing-4.0-ia32:printing-4.0-noarch:qt4-3.1-ia32:qt4-3.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-22-generic
Operating System Version : #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : it_IT.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 5.0.6
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/lib/openerp-server/service/web_services.py", line 687, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/usr/lib/openerp-server/addons/report_openoffice/report_openoffice.py", line 208, in create
return fnct(cr, uid, ids, data, report_xml, context)
File "/usr/lib/openerp-server/addons/report_openoffice/report_openoffice.py", line 133, in create_relatorio_report
data = basic.generate(**self.localcontext).render().getvalue()
File "/usr/local/lib/python2.6/dist-packages/relatorio-0.5.4-py2.6.egg/relatorio/templates/base.py", line 36, in render
return self.serializer(self.events)
File "/usr/local/lib/python2.6/dist-packages/relatorio-0.5.4-py2.6.egg/relatorio/templates/opendocument.py", line 753, in __call__
for kind, data, pos in stream:
File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 605, in _include
for event in stream:
File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 327, in _match
for event in stream:
File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 545, in _flatten
for kind, data, pos in stream:
File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/filters/i18n.py", line 666, in __call__
gettext = self.translate.ugettext
AttributeError: 'function' object has no attribute 'ugettext'