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.


¿What automate the import process?

Francisco Tobar
on 12/11/15, 3:34 PM 445 views

Hello, I want to automate the Import process. I am trying to modify the base_import module.

But I dont know when the csv file is passed to this module.

I found in the controller.py file  the "set_file" function, but i dont found where this function is called and which parameters  may i pass.



Axel Mendoza

--Axel Mendoza--
| 6 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 12/11/15, 11:09 PM

@Francisco Tobar

That function set_file is called using the url like: http://localhost:8069/base_import/set_file
defined in the route decorator like:

def set_file(self, req, file, import_id, jsonp='callback'):

and used in the base_import/static/src/js/import.js

//- File & settings change section

onfile_loaded: function () {

this.$('.oe_import_button, .oe_import_file_reload')

.prop('disabled', true);

if (!this.$('input.oe_import_file').val()) { return; }

this.$el.removeClass('oe_import_preview oe_import_error');

jsonp(this.$el, {

url: '/base_import/set_file'

}, this.proxy('settings_changed'));


Hope that will help you

Thanks for your answer. But i dont know where the parameters are passed. I need to know where the csv file is loaded. Thanks

Francisco Tobar
on 12/14/15, 9:30 AM

The csv is loaded in the import form

Axel Mendoza
on 12/22/15, 3:14 PM

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: 12/11/15, 3:34 PM
Seen: 445 times
Last updated: 12/11/15, 11:09 PM