Odoo Help


How to get data from a csv file ?

on 9/4/14, 9:19 AM 1,008 views


When the user select the CSV file, I want to parse it and insert data in the field 'data', how I can do that ?



    _name = "object"

    _columns = {

        'file_data': fields.binary('File to import', required=True),
        'file_fname': fields.char('Filename', size=128, required=True),

        'data': fields.one2many('data.import', 'data', required=True),




Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

Top 10 Odoo contributor On Stackoverflow 




Sudhir Arya (ERP Harbor Consulting Services)
On 9/5/14, 2:31 PM

Hello Mos,

Following link could help you. The code is about xlrd library but you can use csv library instead and modify the code as per your need.

Import products from excel.

On 9/5/14, 6:32 AM

any help please !

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

2 follower(s)


Asked: 9/4/14, 9:19 AM
Seen: 1008 times
Last updated: 3/16/15, 8:10 AM