Odoo Help


How to fix "Incorrect Padding" issue?

Anirudh Lou
on 11/14/14, 3:43 AM 1,297 views

Hello everyone, This is in relation to my previous question. Can you pls help me how to fix this issue?

File "/usr/lib/python2.7/base64.py", line 76, in b64decode

          raise TypeError(msg)

TypeError: Incorrect padding


HERE is my method:


    def csv_writer(self, cr, uid, ids, context=None):
        virtual_file = csv.writer(open("/opt/openerp/Alphalist.csv","wb"))
        netsvc.Logger().notifyChannel("TEST ...... ", netsvc.LOG_INFO, 'FILE FILE FILE' + str(virtual_file))
        student_object = self.pool.get('student.student')
        active_id = student_object.search(cr,uid,[])
        for obj_list in student_object.browse(cr,uid,active_id,context=context):
                            'name' : 'Studentlist',
                            'file_data' : virtual_file,
        return True


I attch the image here:

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/14/14, 3:43 AM
Seen: 1297 times
Last updated: 3/16/15, 8:10 AM