[FIX] Empty binary fields does not hide filename placeholder

lp bug: https://launchpad.net/bugs/1054111 fixed

bzr revid: fme@openerp.com-20130107161807-fvzdgayqhf8hx92q
This commit is contained in:
Fabien Meghazi 2013-01-07 17:18:07 +01:00
parent d2a863998e
commit 5f7a8b66e0
1 changed files with 1 additions and 1 deletions

View File

@ -4944,7 +4944,7 @@ instance.web.form.FieldBinaryFile = instance.web.form.FieldBinary.extend({
}
this.$el.find('input').eq(0).val(show_value);
} else {
this.$el.find('a').show(!!this.get('value'));
this.$el.find('a').toggle(!!this.get('value'));
if (this.get('value')) {
var show_value = _t("Download")
if (this.view)