[FIX] osv: forgot to "import expression".

bzr revid: vmt@openerp.com-20110829120020-b4tfvgizlednt452
This commit is contained in:
Vo Minh Thu
2011-08-29 14:00:20 +02:00
parent e1b2dec200
commit abcef35c76
+1
View File
@@ -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?