Error printing invoice

Bug #704319 reported by fooflare
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Confirmed
High
OpenERP's Framework R&D

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

Revision history for this message
fooflare (fooflare) wrote :

The problem is not just in invoices, i have checked thar is reproducing in reports in general, allways with new company, with the default one prints all correctly

Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :

Hello Amos,

Would you please tell me the way you are configuring the company. I mean wanted to know about the all parameters of your side in a new company setting. Also give me the information regarding the logo of company if you have configured.

Thanks.

Changed in openobject-server:
status: New → Incomplete
Revision history for this message
fooflare (fooflare) wrote :

Hello Azazahmed,

I just wrote the company's name and configured the currency and have linked the company with the partner. The rest of the fields are in blank. I maintained all the default values when the company was created.

Thanks.

Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :

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:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → High
status: Incomplete → Confirmed
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

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.

affects: openobject-server → openobject-client-web
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.