Run config wizard after module install
This commit is contained in:
@@ -679,10 +679,23 @@ class ModuleInstallUpgrade(Wizard):
|
||||
'type': 'form',
|
||||
'object': 'ir.module.module.install_upgrade.start',
|
||||
'state': [
|
||||
('end', 'Close', 'gtk-close', True),
|
||||
('config', 'Ok', 'gtk-ok', True),
|
||||
],
|
||||
},
|
||||
},
|
||||
'config': {
|
||||
'result': {
|
||||
'type': 'action',
|
||||
'action': '_config',
|
||||
'state': 'end',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
def _config(self, cursor, user, data, context=None):
|
||||
return {
|
||||
'type': 'ir.action.wizard',
|
||||
'wiz_name': 'ir.module.module.config_wizard',
|
||||
}
|
||||
|
||||
ModuleInstallUpgrade()
|
||||
|
||||
Reference in New Issue
Block a user