[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:
parent
fb2e7a4a06
commit
68a0858c9c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue