diff options
| author | Martin Trigaux <mat@openerp.com> | 2014-01-17 19:31:41 +0800 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2014-01-17 19:31:41 +0800 |
| commit | 2dc722ac8071db832dc0d6b71f5824091aea2e83 (patch) | |
| tree | 8ddea3d7db8d37a746718cd47d8a5dae9d757752 /addons/web/static/src | |
| parent | 679cfaaa03df57e91ca1f4dea600b5aee9a14ab8 (diff) | |
[FIX] format_value: consider text fields te same way as char fields for empty values
bzr revid: mat@openerp.com-20140117113141-i95ncy04azzmahqk
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/formats.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/formats.js b/addons/web/static/src/js/formats.js index 998855c5bd4..dd0a9040b6b 100644 --- a/addons/web/static/src/js/formats.js +++ b/addons/web/static/src/js/formats.js @@ -137,7 +137,7 @@ instance.web.format_value = function (value, descriptor, value_if_empty) { //noinspection FallthroughInSwitchStatementJS switch (value) { case '': - if (descriptor.type === 'char') { + if (descriptor.type === 'char' || descriptor.type === 'text') { return ''; } console.warn('Field', descriptor, 'had an empty string as value, treating as false...'); |
