[FIX] web: many2many_binary widget upload

once widget extended with ReinitializeFieldMixin, the event binding with the binary file input and the on_file_change method can be done in initialize_content instead of start

This fix is related to d36c8b5c9b
This commit is contained in:
Denis Ledoux 2014-11-06 16:26:32 +01:00
parent d36c8b5c9b
commit ae99a93b88
1 changed files with 1 additions and 3 deletions

View File

@ -5235,9 +5235,7 @@ instance.web.form.FieldMany2ManyBinaryMultiFiles = instance.web.form.AbstractFie
this.fileupload_id = _.uniqueId('oe_fileupload_temp');
$(window).on(this.fileupload_id, _.bind(this.on_file_loaded, this));
},
start: function() {
this._super();
instance.web.form.ReinitializeFieldMixin.start.call(this);
initialize_content: function() {
this.$el.on('change', 'input.oe_form_binary_file', this.on_file_change );
},
set_value: function(value_) {