[IMP] web field: one2many binary, suppress set_value

bzr revid: chm@openerp.com-20121029093236-mopw9szg6go3ox41
This commit is contained in:
Christophe Matthieu 2012-10-29 10:32:36 +01:00
parent 415f519cd8
commit 0bc02689c0
1 changed files with 0 additions and 5 deletions

View File

@ -4892,16 +4892,11 @@ instance.web.form.FieldOne2ManyBinaryMultiFiles = instance.web.form.AbstractFiel
this.ds_file = new instance.web.DataSetSearch(this, 'ir.attachment');
this.fileupload_id = _.uniqueId('oe_fileupload_temp');
$(window).on(this.fileupload_id, _.bind(this.on_file_loaded, this));
this.list_file = false;
},
start: function() {
this._super(this);
this.$el.on('change', 'input.oe_form_binary_file', this.on_file_change );
},
set_value: function(value_) {
this._super( value_ );
},
get_value: function() {
return _.map(this.get('value'), function (value) { return commands.link_to( value.id ); });
},