[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:
parent
abcef35c76
commit
12f977059c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue