From f986be5a8a4ecedf76413e2312cb42fc10cc120f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 18 Apr 2018 10:08:52 +0200 Subject: [PATCH] Consider undefined string attribute on label as a string A label or separator the name of a field and no string should display the string of the field. issue7356 review44981002 --- src/view/form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view/form.js b/src/view/form.js index 1f1c58e09e..13257bbcc8 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -696,7 +696,8 @@ function eval_pyson(value){ if (this.attributes.name && record) { field = record.model.fields[this.attributes.name]; } - if (!this.attributes.string && field) { + if (!((this.attributes.string === undefined) | + this.attributes.string) && field) { var text = ''; if (record) { text = field.get_client(record) || '';