[FIX] osv: forgot to "import expression".
bzr revid: vmt@openerp.com-20110829120020-b4tfvgizlednt452
This commit is contained in:
@@ -300,6 +300,7 @@ class TransientModel(Model):
|
||||
|
||||
# Restrict acces to the current user, except for the super-user.
|
||||
if self._log_access and uid != openerp.SUPERUSER:
|
||||
import expression
|
||||
domain = expression.expression_and(('create_uid', '=', uid), domain)
|
||||
|
||||
# TODO unclear: shoudl access_rights_uid be set to None (effectively ignoring it) or used instead of uid?
|
||||
|
||||
Reference in New Issue
Block a user