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.
 
 
 
 
 

47 lines
2.6 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!-- Form view for the Remove Studio Fields wizard -->
<record id="remove_studio_field_view_form" model="ir.ui.view">
<field name="name">remove.studio.field.view.form</field>
<field name="model">remove.studio.field</field>
<field name="arch" type="xml">
<form string="Remove Studio Fields">
<sheet>
<div class="alert alert-danger" role="alert"
attrs="{'invisible': [('field_ids', '=', [])]}">
You will lose the data once you remove the fields!
</div>
<div class="alert alert-info" role="alert"
attrs="{'invisible': [('field_ids', '!=', [])]}">
You can only select the fields which are added through Odoo Studio(If any)!
</div>
<group colspan="12">
<field name="field_ids" widget="many2many_tags"
options="{'no_create_edit': True, 'no_create': True}"/>
</group>
<footer>
<button name="action_remove_studio_field" string="Remove Fields"
type="object" disabled="1" attrs="{'invisible': [('field_ids', '!=', [])]}"
style="border: 1px solid #999999; background-color: #cccccc; color: #666666;"/>
<button name="action_remove_studio_field" string="Remove Fields"
type="object" class="oe_highlight" attrs="{'invisible': [('field_ids', '=', [])]}"
confirm="Are you sure you want to delete the selected fields?"/>
<button string="Cancel" class="btn btn-default" special="cancel"/>
</footer>
</sheet>
</form>
</field>
</record>
<!-- Action window for the Remove Studio Fields wizard -->
<record id="remove_studio_field_action" model="ir.actions.act_window">
<field name="name">Remove Studio Fields</field>
<field name="res_model">remove.studio.field</field>
<field name="type">ir.actions.act_window</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<!-- Menu for the Remove Studio Fields wizard -->
<menuitem id="remove_studio_field_menu_action" name="Remove Studio Fields"
action="remove_studio_field_action" parent="base.next_id_9" sequence="5"
groups="remove_studio_field.remove_studio_field_group_admin"/>
</odoo>