Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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
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,
I attch the image here:
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 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 11/14/14, 3:43 AM|
|Seen: 978 times|
|Last updated: 3/16/15, 8:10 AM|