You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

52 lines
2.4 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="cleanup_create_indexes_wizard_view_form" model="ir.ui.view">
<field name="model">cleanup.create_indexes.wizard</field>
<field name="inherit_id" ref="form_purge_wizard" />
<field name="mode">primary</field>
<field name="arch" type="xml">
<button name="purge_all" position="attributes">
<attribute name="string">Create all</attribute>
</button>
<button name="purge" position="attributes">
<attribute name="string">Create</attribute>
</button>
</field>
</record>
<record id="cleanup_create_indexes_wizard_action" model="ir.actions.server">
<field name="name">Create missing indexes</field>
<field name="type">ir.actions.server</field>
<field name="state">code</field>
<field name="model_id" ref="database_cleanup.model_cleanup_create_indexes_wizard" />
<field name="code">action = self.get_wizard_action(cr, uid, context=context)</field>
</record>
<record id="cleanup_create_indexes_line_view_tree" model="ir.ui.view">
<field name="model">cleanup.create_indexes.line</field>
<field name="inherit_id" ref="tree_purge_line" />
<field name="mode">primary</field>
<field name="arch" type="xml">
<button name="purge" position="attributes">
<attribute name="string">Create this index</attribute>
<attribute name="icon">gtk-add</attribute>
</button>
</field>
</record>
<record id="cleanup_create_indexes_line_action" model="ir.actions.server">
<field name="name">Create</field>
<field name="type">ir.actions.server</field>
<field name="state">code</field>
<field name="model_id" ref="database_cleanup.model_cleanup_create_indexes_line" />
<field name="code">self.purge(cr, uid, context.get('active_ids', []), context)</field>
</record>
<record id="cleanup_create_indexes_line_action_value" model="ir.values">
<field name="name">Create indexes</field>
<field name="key">action</field>
<field name="key2">client_action_multi</field>
<field name="model">cleanup.create_indexes.line</field>
<field name="value" eval="'ir.actions.server,%d' % ref('database_cleanup.cleanup_create_indexes_line_action')" />
</record>
</odoo>