Ciao a tutti! Ho appena installato il modulo per odoo 4 "Switzerland - Payment Slip (BVR/ESR)"
L'installazione è andata a buon fine ma quando entro nella fattura e dico Stampa Payment Slip ottengo una pagina:
"Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."
andando sempre in fattura > altre informazioni > Open Payent Slip > Crea e poi salva
ottengo:
Traceback (most recent call last):
File "/opt/odoo/odoo/openerp/http.py", line 536, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/openerp/http.py", line 573, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/openerp/http.py", line 309, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/openerp/http.py", line 306, in checked_call
return self.endpoint(*a, **kw)
File "/opt/odoo/odoo/openerp/http.py", line 802, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo/openerp/http.py", line 402, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 937, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 929, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/odoo/openerp/models.py", line 5144, in search_read
result = self.read(cr, uid, record_ids, fields, context=read_ctx)
File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/odoo/openerp/models.py", line 3139, in read
result = BaseModel.read(records, fields, load=load)
File "/opt/odoo/odoo/openerp/api.py", line 239, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/odoo/openerp/models.py", line 3185, in read
values[name] = field.convert_to_read(record[name], use_name_get)
File "/opt/odoo/odoo/openerp/models.py", line 5571, in __getitem__
return self._fields[key].__get__(self, type(self))
File "/opt/odoo/odoo/openerp/fields.py", line 817, in __get__
self.determine_value(record)
File "/opt/odoo/odoo/openerp/fields.py", line 919, in determine_value
self.compute_value(recs)
File "/opt/odoo/odoo/openerp/fields.py", line 875, in compute_value
self._compute_value(records)
File "/opt/odoo/odoo/openerp/fields.py", line 867, in _compute_value
self.compute(records)
File "/opt/odoo/odoo/addons/l10n_ch_payment_slip/payment_slip.py", line 765, in draw_payment_slip_image
img = self._draw_payment_slip()
File "/opt/odoo/odoo/addons/l10n_ch_payment_slip/payment_slip.py", line 715, in _draw_payment_slip
initial_position, company)
File "/opt/odoo/odoo/openerp/api.py", line 239, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/odoo/addons/l10n_ch_payment_slip/payment_slip.py", line 458, in _draw_address
text.textOut(com_partner.name)
File "/usr/lib/python2.7/dist-packages/reportlab/pdfgen/textobject.py", line 409, in textOut
self._x = self._x + self._canvas.stringWidth(text, self._fontname, self._fontsize)
File "/usr/lib/python2.7/dist-packages/reportlab/pdfgen/canvas.py", line 1627, in stringWidth
(fontSize,self._fontsize)[fontSize is None])
File "/usr/lib/python2.7/dist-packages/reportlab/pdfbase/pdfmetrics.py", line 707, in stringWidth
return getFont(fontName).stringWidth(text, fontSize, encoding=encoding)
File "/usr/lib/python2.7/dist-packages/reportlab/pdfbase/ttfonts.py", line 998, in stringWidth
return instanceStringWidthTTF(self,text,size,encoding)
File "/build/buildd/python-reportlab-3.0/src/rl_addons/rl_accel/_rl_accel.c", line 858, in instanceStringWidthTTF
AttributeError: decode