summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-01-23 16:07:49 +0100
committerXavier Morel <xmo@openerp.com>2012-01-23 16:07:49 +0100
commit7a894c67f0acf65aa04fbfcd2df53ef197df8ca9 (patch)
tree7c32865bb36dbe106c7a18ccdc526690efab6269 /addons
parent726f1cc6693cc6e0bd969b25a3c612c2d8113cb6 (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.js2
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){