@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:
@route('/base_import/set_file')
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