From 3e48ee634fe3a6eca4f19404fc3b1255f84834bf Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 4 Mar 2016 12:37:15 +0100 Subject: [PATCH] [FIX] base: fix ir.actions.todo after module install When installing or upgrating a module via the apps managing view, the module updates are applied in a new cursor. So when getting the action to do after updating the module, we need to have a transaction current with commited transaction. closes #11216 opw-660269 --- openerp/addons/base/module/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openerp/addons/base/module/module.py b/openerp/addons/base/module/module.py index e4e2408dc51..a585b27ac8b 100644 --- a/openerp/addons/base/module/module.py +++ b/openerp/addons/base/module/module.py @@ -532,6 +532,7 @@ class module(osv.osv): api.Environment.reset() registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) + cr.commit() config = registry['res.config'].next(cr, uid, [], context=context) or {} if config.get('type') not in ('ir.actions.act_window_close',): return config