From edaa35737b815b37648d75df7f6228d38ee90ca9 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Thu, 8 Nov 2012 17:40:53 +0100 Subject: [PATCH] [FIX] hr_timesheet_sheet: typo in javascript code bzr revid: nicolas.vanhoren@openerp.com-20121108164053-pcs8qq98ged4hyj7 --- addons/hr_timesheet_sheet/static/src/js/timesheet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet_sheet/static/src/js/timesheet.js b/addons/hr_timesheet_sheet/static/src/js/timesheet.js index f4d150190b4..efff48d93b8 100644 --- a/addons/hr_timesheet_sheet/static/src/js/timesheet.js +++ b/addons/hr_timesheet_sheet/static/src/js/timesheet.js @@ -110,7 +110,7 @@ openerp.hr_timesheet_sheet = function(instance) { return new instance.web.Model("hr.analytic.timesheet").call("multi_on_change_account_id", [[], account_ids, new instance.web.CompoundContext({'user_id': self.get('user_id')})]).then(function(accounts_defaults) { accounts = _(accounts).chain().map(function(lines, account_id) { - account_defaults = _.extend({}, default_get, accounts_defaults[account_id]); + account_defaults = _.extend({}, default_get, (accounts_defaults[account_id] || {}).value || {}); // group by days account_id = account_id === "false" ? false : Number(account_id); var index = _.groupBy(lines, "date");