diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-01-23 16:07:49 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-01-23 16:07:49 +0100 |
| commit | 7a894c67f0acf65aa04fbfcd2df53ef197df8ca9 (patch) | |
| tree | 7c32865bb36dbe106c7a18ccdc526690efab6269 /addons | |
| parent | 726f1cc6693cc6e0bd969b25a3c612c2d8113cb6 (diff) | |
[FIX] if no @progress defined (most common case since @progress does not actually exist), default to 100
bzr revid: xmo@openerp.com-20120123150749-ufo2mp9ntkz7tvy7
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web_gantt/static/src/js/gantt.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_gantt/static/src/js/gantt.js b/addons/web_gantt/static/src/js/gantt.js index 7cfd0312e2c..80b29fe4368 100644 --- a/addons/web_gantt/static/src/js/gantt.js +++ b/addons/web_gantt/static/src/js/gantt.js @@ -145,7 +145,7 @@ openerp.web_gantt.GanttView = openerp.web.View.extend({ var id = res['id']; var text = res[this.text]; var start_date = res[this.date_start]; - var progress = res[this.progress]; + var progress = res[this.progress] || 100; if (this.date_stop != undefined){ if (res[this.date_stop] != false){ |
