[IMP] web form: FieldOne2ManyBinaryMultiFiles no delete file on set value

bzr revid: chm@openerp.com-20121115135904-17rg7j5g8xu4rjvn
This commit is contained in:
Christophe Matthieu
2012-11-15 14:59:04 +01:00
parent 64e46a1e0e
commit 6807a2e07c
-2
View File
@@ -5038,10 +5038,8 @@ instance.web.form.FieldOne2ManyBinaryMultiFiles = instance.web.form.AbstractFiel
return;
case commands.DELETE:
ids = _.filter(ids, function (id) { return id != command[1];});
self.ds_file.unlink(command[1]);
return;
case commands.DELETE_ALL:
self.ds_file.unlink(ids);
ids = [];
return;
}