Browse Source

[IMP] hide unnecessary buttons in wizard II

pull/158/head
Holger Brunn 10 years ago
parent
commit
3a585e5cb6
  1. 22
      database_cleanup/view/purge_columns.xml
  2. 22
      database_cleanup/view/purge_data.xml
  3. 22
      database_cleanup/view/purge_modules.xml
  4. 22
      database_cleanup/view/purge_tables.xml

22
database_cleanup/view/purge_columns.xml

@ -25,12 +25,24 @@
</field>
</record>
<record id="action_purge_columns" model="ir.actions.act_window">
<record id="action_purge_columns" model="ir.actions.server">
<field name="name">Purge columns</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">cleanup.purge.wizard.column</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="type">ir.actions.server</field>
<field name="state">code</field>
<field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_column" />
<field name="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,
},
}
</field>
</record>
</data>

22
database_cleanup/view/purge_data.xml

@ -25,12 +25,24 @@
</field>
</record>
<record id="action_purge_data" model="ir.actions.act_window">
<record id="action_purge_data" model="ir.actions.server">
<field name="name">Purge data entries that refer to missing resources</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">cleanup.purge.wizard.data</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="type">ir.actions.server</field>
<field name="state">code</field>
<field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_data" />
<field name="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,
},
}
</field>
</record>
</data>

22
database_cleanup/view/purge_modules.xml

@ -24,12 +24,24 @@
</field>
</record>
<record id="action_purge_modules" model="ir.actions.act_window">
<record id="action_purge_modules" model="ir.actions.server">
<field name="name">Purge modules</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">cleanup.purge.wizard.module</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="type">ir.actions.server</field>
<field name="state">code</field>
<field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_module" />
<field name="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,
},
}
</field>
</record>
</data>

22
database_cleanup/view/purge_tables.xml

@ -24,12 +24,24 @@
</field>
</record>
<record id="action_purge_tables" model="ir.actions.act_window">
<record id="action_purge_tables" model="ir.actions.server">
<field name="name">Purge tables</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">cleanup.purge.wizard.table</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="type">ir.actions.server</field>
<field name="state">code</field>
<field name="model_id" ref="database_cleanup.model_cleanup_purge_wizard_table" />
<field name="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,
},
}
</field>
</record>
</data>

Loading…
Cancel
Save