[FIX] audittrail: avoid deadlock when installing module making references to ir.model...
authorAlbert Cervera i Areny <>
Wed, 15 Sep 2010 08:46:59 +0000 (10:46 +0200)
committerChristophe Simonis <chs@openerp.com>
Wed, 15 Sep 2010 08:46:59 +0000 (10:46 +0200)
lp bug: https://launchpad.net/bugs/599008 fixed

bzr revid: chs@openerp.com-20100915084659-vdwsesa02urhj383

addons/audittrail/audittrail.py

index cff20fd..ee6f34a 100644 (file)
@@ -315,6 +315,7 @@ class audittrail_objects_proxy(objects_proxy):
     def execute(self, db, uid, passwd, model, method, *args):
         pool = pooler.get_pool(db)
         cr = pooler.get_db(db).cursor()
+        cr.autocommit(True)
         try:
             proxy = pool.get(model)
             if proxy is None: