Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fmdl committed Oct 20, 2017
1 parent b524b49 commit db0302b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openerp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2080,8 +2080,8 @@ def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, con
context = {}
self.check_access_rights(cr, uid, 'read')

# For transient models, restrict access to the current user, except for the super-user
if self.is_transient() and self._log_access and user != SUPERUSER_ID:
# For transient models, restrict access to the current user
if self.is_transient():
domain = expression.AND(([('create_uid', '=', user)], domain or []))

query = self._where_calc(cr, uid, domain, context=context)
Expand Down

0 comments on commit db0302b

Please sign in to comment.