[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
This commit is contained in:
Nicolas Lempereur
2016-03-04 15:20:07 +01:00
parent e46f65ab26
commit 3e48ee634f
+1
View File
@@ -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