[FIX] orm: a typo made all models treated as if they were transient in check_access_r...
authorVo Minh Thu <vmt@openerp.com>
Tue, 4 Oct 2011 14:33:35 +0000 (16:33 +0200)
committerVo Minh Thu <vmt@openerp.com>
Tue, 4 Oct 2011 14:33:35 +0000 (16:33 +0200)
bzr revid: vmt@openerp.com-20111004143335-7etc6y2kje1y20ef

openerp/osv/orm.py

index 2b1a3ff..9c6d493 100644 (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.