Odoo Help


This community 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.


How to fix "Incorrect Padding" issue?

Anirudh Lou
on 11/14/14, 3:43 AM 897 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:

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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