[IMP] osv_memory_autovacuum: use the method instead of accessing the field directly.

bzr revid: vmt@openerp.com-20110830141421-r6b48z00ae11kubr
This commit is contained in:
Vo Minh Thu 2011-08-30 16:14:21 +02:00
parent abcef35c76
commit 12f977059c
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class osv_memory_autovacuum(openerp.osv.osv.osv_memory):
def power_on(self, cr, uid, context=None):
for model in self.pool.obj_list():
obj = self.pool.get(model)
if obj._transient:
if obj.is_transient():
obj.vacuum(cr, uid)
return True