From 3a585e5cb6ffee47a50e94987a73ef11b93fa23e Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 11 May 2015 15:59:44 +0200 Subject: [PATCH] [IMP] hide unnecessary buttons in wizard II --- database_cleanup/view/purge_columns.xml | 22 +++++++++++++++++----- database_cleanup/view/purge_data.xml | 22 +++++++++++++++++----- database_cleanup/view/purge_modules.xml | 22 +++++++++++++++++----- database_cleanup/view/purge_tables.xml | 22 +++++++++++++++++----- 4 files changed, 68 insertions(+), 20 deletions(-) diff --git a/database_cleanup/view/purge_columns.xml b/database_cleanup/view/purge_columns.xml index 40ed4a4f6..96aa1212e 100644 --- a/database_cleanup/view/purge_columns.xml +++ b/database_cleanup/view/purge_columns.xml @@ -25,12 +25,24 @@ - + Purge columns - ir.actions.act_window - cleanup.purge.wizard.column - form - form + ir.actions.server + code + + +wizard_id = self.create(cr, uid, {}, context=context) +action = { + 'type': 'ir.actions.act_window', + 'views': [(False, 'form')], + 'res_model': 'cleanup.purge.wizard.column', + 'res_id': wizard_id, + 'flags': { + 'action_buttons': False, + 'sidebar': False, + }, +} + diff --git a/database_cleanup/view/purge_data.xml b/database_cleanup/view/purge_data.xml index e749f4569..890d0d450 100644 --- a/database_cleanup/view/purge_data.xml +++ b/database_cleanup/view/purge_data.xml @@ -25,12 +25,24 @@ - + Purge data entries that refer to missing resources - ir.actions.act_window - cleanup.purge.wizard.data - form - form + ir.actions.server + code + + +wizard_id = self.create(cr, uid, {}, context=context) +action = { + 'type': 'ir.actions.act_window', + 'views': [(False, 'form')], + 'res_model': 'cleanup.purge.wizard.data', + 'res_id': wizard_id, + 'flags': { + 'action_buttons': False, + 'sidebar': False, + }, +} + diff --git a/database_cleanup/view/purge_modules.xml b/database_cleanup/view/purge_modules.xml index 7c0151f54..65dd5473a 100644 --- a/database_cleanup/view/purge_modules.xml +++ b/database_cleanup/view/purge_modules.xml @@ -24,12 +24,24 @@ - + Purge modules - ir.actions.act_window - cleanup.purge.wizard.module - form - form + ir.actions.server + code + + +wizard_id = self.create(cr, uid, {}, context=context) +action = { + 'type': 'ir.actions.act_window', + 'views': [(False, 'form')], + 'res_model': 'cleanup.purge.wizard.module', + 'res_id': wizard_id, + 'flags': { + 'action_buttons': False, + 'sidebar': False, + }, +} + diff --git a/database_cleanup/view/purge_tables.xml b/database_cleanup/view/purge_tables.xml index dc9ddd8f5..b963a2f02 100644 --- a/database_cleanup/view/purge_tables.xml +++ b/database_cleanup/view/purge_tables.xml @@ -24,12 +24,24 @@ - + Purge tables - ir.actions.act_window - cleanup.purge.wizard.table - form - form + ir.actions.server + code + + +wizard_id = self.create(cr, uid, {}, context=context) +action = { + 'type': 'ir.actions.act_window', + 'views': [(False, 'form')], + 'res_model': 'cleanup.purge.wizard.table', + 'res_id': wizard_id, + 'flags': { + 'action_buttons': False, + 'sidebar': False, + }, +} +