[FIX] convert long to int

bzr revid: mat@openerp.com-20130327171533-jq59583ekxyq5os2
This commit is contained in:
Martin Trigaux 2013-03-27 18:15:33 +01:00
parent 7801db8713
commit 982012cddf
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class mail_message(osv.Model):
"""If the user posting the message to an employee is an employee, only
the read access are checked"""
employee_ids = model_obj.search(cr, uid, [('user_id', '=', uid)], context=context)
employee_ids = model_obj.search(cr, uid, [('user_id', '=', int(uid))], context=context)
if len(employee_ids) > 0:
model_obj.check_access_rights(cr, uid, 'read')
model_obj.check_access_rule(cr, uid, mids, 'read', context=context)