Odoo Help

Welcome!

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.

0

How to increase CSV field size limit for using import function? OR Best approach to upload many product pictures?

By
Thomas Walter
on 6/2/14, 3:28 PM 1,559 views

Dear all,

I tried it already the CSV import function but run into an CSV field size limit error - how and where exactly (in file model.py) can the CSV field size limit be increased?

Or 

we have over 1000 products in OpenERP and need to upload the pictures (which have the same name then the product key (internal reference). What is the best approach (alternative) to upload that many pictures and assign them to the product master?

regards, Thomas

thanks to the earlier post https://www.odoo.com/forum/Help-1/question/How-to-import-images-for-products-in-binary-to-the-database-1868

,and credits to Marc Casutto and Bart Criel, I managed to create an upload file for my pictures.

Unfortunately i run into the "field larger than field limit" error. I tried to add the "csv.field_size_limit(2097152)" into the model.py file, deleted the models.pyc file and restarted the server.

However no matter where i put the csv.field_size_limit statement the openerp either does not work or shows the same failure.

Could you please post specify more precisly where i have to put the csv.field_size_limit?

 

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)

Stats

Asked: 6/2/14, 3:28 PM
Seen: 1559 times
Last updated: 3/16/15, 8:10 AM