Hi Josias,
Am 14.07.2013 05:11, schrieb Josias Pérez:
Hi,
I want to add a logo to the header on a report.
When add a binary field on company and use it to display the image in the
header, receive the follow message....
Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 158, in dispatch
result = rpc.result(meth(*args, **kwargs))
File "/trytond/report/report.py", line 131, in execute
type, data = cls.parse(action_report, records, data, {})
File "/trytond/modules/company/company.py", line 319, in parse
localcontext)
File "/trytond/report/report.py", line 280, in parse
data = rel_report(**localcontext).render()
File "/relatorio/templates/base.py", line 39, in render
return self.serializer(self.events)
File "/relatorio/templates/opendocument.py", line 835, in __call__
for kind, data, pos in stream:
File "/genshi/core.py", line 289, in _ensure
for event in stream:
File "/genshi/filters/i18n.py", line 690, in __call__
for kind, data, pos in stream:
File "/genshi/template/base.py", line 618, in _include
for event in stream:
File "/genshi/template/markup.py", line 326, in _match
for event in stream:
File "/genshi/template/base.py", line 592, in _flatten
yield TEXT, unicode(result), pos
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal
not in range(128)
So, is there a tutorial for insert image on tryton?
Thanks in advance!
Tryton uses Relatorio for the reports. On
http://code.google.com/p/python-relatorio/wiki/IndepthIntroduction
you'll find a description.
An image is not a field, you have to insert a frame and set the frames
attributes.
Good luck
Ralf Peschke