From 5f7a8b66e03de34277503b1ceeecf1f5ce4bc795 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Mon, 7 Jan 2013 17:18:07 +0100 Subject: [PATCH] [FIX] Empty binary fields does not hide filename placeholder lp bug: https://launchpad.net/bugs/1054111 fixed bzr revid: fme@openerp.com-20130107161807-fvzdgayqhf8hx92q --- addons/web/static/src/js/view_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index e86246f5da2..01d4bf6dd33 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -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)