This question has been flagged
2 Replies
18763 Views

hi all!

    when i try tp print a report with image(lead report) in crm.lead, I get the following error

Incorrect padding (<class 'binascii.error'="">, Error('Incorrect padding',), <traceback object="" at="" 0xb46c48ec="">) The same image and same code works perfectly well in sale.order...whats the mistake i am doing.?? Am i committing any mistake in placing the code at correct position or whats the issue? Anyone plz help me...expecting your reply...plz

Avatar
Discard
Best Answer

Hi,

Sometimes it occurs due to string corrupted and base64 lib can't decode it.

Email : info@acespritech.com
Skype : acespritech
Blog : acespritechblog.wordpress.com

Avatar
Discard
Author

hey hi!! thanks for the reply..but can you plz suggest me a solution for this issue...i wanted to print an image in report...It would be helpful if you could reply..any help would be appreciated...thanks...expecting a solution from you...

Best Answer

Hi Selva,

This was a bug reported and fixed a long time back. Incorrect Padding Bug

So I think you need to use the updated source.

Thanks,

Avatar
Discard
Author

Updated source means you are asking me to switch to higher versions of openerp like v6.01 or v7...I am new to openerp so can you plz help me...Expecting your reply..

No, I am not asking you to migrate from one version to another. I asked to update the stable source because bugfixes are regularly done on stable. visit http://nightly.openerp.com/

Guys, I am using Odoo V8, commit 792b737f3faa16b3c5dab8674d89fb5c3987ff80, and I have this error when exporting products from a database and reimporting them to another instance (same version)