diff options
| author | Martin Geubelle <mge@odoo.com> | 2015-08-19 16:54:45 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2015-08-26 14:29:20 +0200 |
| commit | 1e4e1644a96de0d1d29fc765f8ba4083afc36581 (patch) | |
| tree | 501d0e62053267252965fb15656e891b190e6e0d /addons/web/static/src/js/widgets | |
| parent | 66d97cb7e4e95e95fb48174ea0135ba1ca3f9573 (diff) | |
[FIX] web: add a default value for progressbar
Remove the value in the input leaded to a traceback.
Diffstat (limited to 'addons/web/static/src/js/widgets')
| -rw-r--r-- | addons/web/static/src/js/widgets/progress_bar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/widgets/progress_bar.js b/addons/web/static/src/js/widgets/progress_bar.js index c97083a89c8..abe1009b1fa 100644 --- a/addons/web/static/src/js/widgets/progress_bar.js +++ b/addons/web/static/src/js/widgets/progress_bar.js @@ -84,7 +84,7 @@ var ProgressBar = Widget.extend({ if(this.edit_max_value) { this.max_value = $(e.target).val(); } else { - this.value = $(e.target).val(); + this.value = $(e.target).val() || 0; } this._render_value(); |
