[FIX] if no @progress defined (most common case since @progress does not actually exist), default to 100

bzr revid: xmo@openerp.com-20120123150749-ufo2mp9ntkz7tvy7
This commit is contained in:
Xavier Morel
2012-01-23 16:07:49 +01:00
parent 726f1cc669
commit 7a894c67f0
+1 -1
View File
@@ -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){