[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user