From 2b89c192f2c76d103aa5bbad1bbc54760e0ae507 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Wed, 24 Apr 2013 11:23:26 +0200 Subject: [PATCH] [REV] revert of commit 9058, that was not appropriate for a stable version (again). :-s bzr revid: qdp-launchpad@openerp.com-20130424092326-tec7siywgg4pbfu4 --- addons/hr_timesheet/hr_timesheet.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/hr_timesheet/hr_timesheet.py b/addons/hr_timesheet/hr_timesheet.py index 461507f9e41..6a538e5d09c 100644 --- a/addons/hr_timesheet/hr_timesheet.py +++ b/addons/hr_timesheet/hr_timesheet.py @@ -37,8 +37,8 @@ class hr_employee(osv.osv): def _getAnalyticJournal(self, cr, uid, context=None): md = self.pool.get('ir.model.data') try: - dummy, res_id = md.check_object_reference(cr, uid, 'hr_timesheet', 'analytic_journal') - return res_id + result = md.get_object_reference(cr, uid, 'hr_timesheet', 'analytic_journal') + return result[1] except ValueError: pass return False @@ -46,8 +46,8 @@ class hr_employee(osv.osv): def _getEmployeeProduct(self, cr, uid, context=None): md = self.pool.get('ir.model.data') try: - dummy, res_id = md.check_object_reference(cr, uid, 'product', 'product_product_consultant') - return res_id + result = md.get_object_reference(cr, uid, 'product', 'product_product_consultant') + return result[1] except ValueError: pass return False