Fixed NaN problem

bzr revid: nicolas.vanhoren@openerp.com-20121002122140-ode98iv2ul3ynks7
This commit is contained in:
niv-openerp 2012-10-02 14:21:40 +02:00
parent 6679892393
commit 6d4320a5a6
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ openerp.hr_timesheet_sheet = function(instance) {
// add line where we will insert/remove hours
var to_add = _.find(day.lines, function(line) { return line.name === self.description_line });
if (to_add) {
day.lines = _.without(to_add);
day.lines = _.without(day.lines, to_add);
day.lines.unshift(to_add);
} else {
day.lines.unshift(_.extend(_.clone(default_get), {