[IMP] Remove useless code in binary fields

bzr revid: fme@openerp.com-20120614155758-lglfapqxkrctrfn4
This commit is contained in:
Fabien Meghazi 2012-06-14 17:57:58 +02:00
parent bed2f2f0e6
commit 0e5ef33fdc
1 changed files with 0 additions and 2 deletions

View File

@ -4108,7 +4108,6 @@ instance.web.form.FieldBinaryFile = instance.web.form.FieldBinary.extend({
var show_value = name + " (" + this.human_filesize(size) + ")";
this.$element.find('input').eq(0).val(show_value);
this.set_filename(name);
this.trigger('changed_value');
},
set_filename: function(value_) {
var filename = this.node.attrs.filename;
@ -4151,7 +4150,6 @@ instance.web.form.FieldBinaryImage = instance.web.form.FieldBinary.extend({
this.set({'value': file_base64});
this.binary_value = true;
this.render_value();
this.trigger('changed_value');
},
on_clear: function() {
this._super.apply(this, arguments);