← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 704319] Re: Error printing invoice

 

Hello Amos,

Thanks for the reporting the issue. I have checked the traceback and it
occurs due to the invalid string passed in the b64decode( ) method of
python.

I got the traceback explicitly by giving the name of company in non-
alphabet characters. So I am confirming this bug as after we will not
able to print the any of reports which contains the company_id as a
field.

Thanks.

** Changed in: openobject-server
   Importance: Undecided => High

** Changed in: openobject-server
       Status: Incomplete => Confirmed

** Changed in: openobject-server
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
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 Server:
  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