← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 704319] Re: Error printing invoice

 

*** This bug is a duplicate of bug 670228 ***
    https://bugs.launchpad.net/bugs/670228

Hello Amós,

This is yet another duplicate of the image corruption bug of the web client: bug 670228.
What happens is that when you renamed or created the company with the web client, it stored a corrupted logo in the company.

To verify this, you can open the company form in GTK client, and set a
correct logo image, then save it. Afterwards you will be able to print
reports again, even in web client.

I reopened bug 670228, as it is still not fixed.

** This bug has been marked a duplicate of bug 670228
   Web-client corrupts binary fields (e.g. company logo)
 * You can subscribe to bug 670228 by following this link: https://bugs.launchpad.net/openobject-client-web/+bug/670228/+subscribe

** Project changed: openobject-server => openobject-client-web

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/704319

Title:
  Error printing invoice

Status in OpenObject Web Client:
  Confirmed

Bug description:
  version 6.0-dev on Ubuntu10.10 64bits

  This error appears only in when I try to print invoices that were
  created by a new company different than the default one.

  Advise in web client:

  (<class 'binascii.Error'>, Error('Incorrect padding',), <traceback
  object at 0x43bd128>)

  Traceback:

  [2011-01-18 10:01:14,975][erpaberto] ERROR:web-services:[01]: Exception: Incorrect padding
  [2011-01-18 10:01:14,975][erpaberto] ERROR:web-services:[02]: Traceback (most recent call last):
  [2011-01-18 10:01:14,975][erpaberto] ERROR:web-services:[03]:   File "/home/amosoviedo/openerp6/openobject-server/bin/service/web_services.py", line 724, in go
  [2011-01-18 10:01:14,975][erpaberto] ERROR:web-services:[04]:     (result, format) = obj.create(cr, uid, ids, datas, context)
  [2011-01-18 10:01:14,975][erpaberto] ERROR:web-services:[05]:   File "/home/amosoviedo/openerp6/openobject-server/bin/report/report_sxw.py", line 428, in create
  [2011-01-18 10:01:14,976][erpaberto] ERROR:web-services:[06]:     fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
  [2011-01-18 10:01:14,976][erpaberto] ERROR:web-services:[07]:   File "/home/amosoviedo/openerp6/openobject-server/bin/report/report_sxw.py", line 462, in create_source_pdf
  [2011-01-18 10:01:14,976][erpaberto] ERROR:web-services:[08]:     result = self.create_single_pdf(cr, uid, [obj.id], data, report_xml, context)
  [2011-01-18 10:01:14,976][erpaberto] ERROR:web-services:[09]:   File "/home/amosoviedo/openerp6/openobject-server/bin/report/report_sxw.py", line 511, in create_single_pdf
  [2011-01-18 10:01:14,976][erpaberto] ERROR:web-services:[10]:     logo = base64.decodestring(rml_parser.logo)
  [2011-01-18 10:01:14,976][erpaberto] ERROR:web-services:[11]:   File "/usr/lib/python2.6/base64.py", line 321, in decodestring
  [2011-01-18 10:01:14,977][erpaberto] ERROR:web-services:[12]:     return binascii.a2b_base64(s)
  [2011-01-18 10:01:14,977][erpaberto] ERROR:web-services:[13]: Error: Incorrect padding





References