From 77bad40d9d5cd567d9e8eed60641c2afc3a41a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 13 Sep 2016 13:51:44 +0200 Subject: [PATCH] [FIX] sale_timesheet: fix recordset given to a create / write instead of an id --- addons/sale_timesheet/models/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_timesheet/models/account.py b/addons/sale_timesheet/models/account.py index c3fb23eb40f..9b8177a594c 100644 --- a/addons/sale_timesheet/models/account.py +++ b/addons/sale_timesheet/models/account.py @@ -40,7 +40,7 @@ class AccountAnalyticLine(models.Model): return { 'amount': -unit_amount * cost, 'product_uom_id': uom.id, - 'account_id': emp.account_id, + 'account_id': emp.account_id.id, } return {}