[FIX] orm: a typo made all models treated as if they were transient in check_access_rule().

bzr revid: vmt@openerp.com-20111004143335-7etc6y2kje1y20ef
This commit is contained in:
Vo Minh Thu 2011-10-04 16:33:35 +02:00
parent fb2e7a4a06
commit 68a0858c9c
1 changed files with 1 additions and 1 deletions

View File

@ -3480,7 +3480,7 @@ class BaseModel(object):
if uid == SUPERUSER_ID:
return
if self.is_transient:
if self.is_transient():
# Only one single implicit access rule for transient models: owner only!
# This is ok to hardcode because we assert that TransientModels always
# have log_access enabled and this the create_uid column is always there.