summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Snauwaert <csn@openerp.com>2013-04-22 13:46:57 +0200
committerCedric Snauwaert <csn@openerp.com>2013-04-22 13:46:57 +0200
commitb2e2d854f87f7fa73d698093d113a650ff58698f (patch)
treee9496e353862683630c04efff22ca75c60d23297
parentcffce8a42564eefefe14564cf2021d88236cfb95 (diff)
[FIX]hr_timesheet: correct mistake in default, should be 'id' instead of 'name' in search
bzr revid: csn@openerp.com-20130422114657-ktu1a7z83c0bhv2n
-rw-r--r--addons/hr_timesheet/hr_timesheet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_timesheet/hr_timesheet.py b/addons/hr_timesheet/hr_timesheet.py
index 68c158e04e1..bb311778b33 100644
--- a/addons/hr_timesheet/hr_timesheet.py
+++ b/addons/hr_timesheet/hr_timesheet.py
@@ -40,7 +40,7 @@ class hr_employee(osv.osv):
result = md.get_object_reference(cr, uid, 'hr_timesheet', 'analytic_journal')
#search on id found in result to check if current user has read access right, if he does, it will return same id,
#otherwise it will return empty list
- check_right = self.pool.get('account.analytic.journal').search(cr, uid, [('name', '=', result[1])], context=context)
+ check_right = self.pool.get('account.analytic.journal').search(cr, uid, [('id', '=', result[1])], context=context)
if check_right:
return result[1]
else: