[MERGE] forward port of branch 7.0 up to d36c8b5
[odoo/odoo.git] / addons / web / static / src / js / view_form.js
index 46cc774..e9d9383 100644 (file)
@@ -5458,11 +5458,9 @@ instance.web.form.FieldMany2ManyBinaryMultiFiles = instance.web.form.AbstractFie
         $(window).on(this.fileupload_id, _.bind(this.on_file_loaded, this));
     },
     start: function() {
-        this._super(this);
+        this._super();
+        instance.web.form.ReinitializeFieldMixin.start.call(this);
         this.$el.on('change', 'input.oe_form_binary_file', this.on_file_change );
-        this.on("change:effective_readonly", this, function () {
-            this.render_value();
-        });
     },
     set_value: function(value_) {
         value_ = value_ || [];