32 lines
1.4 KiB
XML
32 lines
1.4 KiB
XML
<?xml version="1.0"?>
|
|
<flectra>
|
|
<record id="digest_custom_remove_view_form" model="ir.ui.view">
|
|
<field name="name">digest.custom.remove.form</field>
|
|
<field name="model">digest.custom.remove</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Customized Digest">
|
|
<group>
|
|
<field name="remove_type"/>
|
|
</group>
|
|
<group>
|
|
<field name="field_id" attrs="{'invisible': [('remove_type', '!=', 'field')]}" options="{'no_create': True}"/>
|
|
<field name="available_group_name" attrs="{'invisible': [('remove_type', '!=', 'group')]}"/>
|
|
</group>
|
|
<footer>
|
|
<button name="action_customize_digest_remove" string="Remove" type="object" class="btn btn-sm btn-primary"/>
|
|
<button string="Cancel" class="btn btn-sm btn-default" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="digest_custom_remove_action" model="ir.actions.act_window">
|
|
<field name="name">Customized Digest Remove</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">digest.custom.remove</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="digest_custom_remove_view_form"/>
|
|
<field name="target">new</field>
|
|
</record>
|
|
</flectra>
|