Odoo Help


¿What automate the import process?

Francisco Tobar
on 12/11/15, 3:34 PM 972 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--
| 7 8 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 and 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

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

1 follower(s)


Asked: 12/11/15, 3:34 PM
Seen: 972 times
Last updated: 12/11/15, 11:09 PM