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.
67 lines
2.9 KiB
67 lines
2.9 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<odoo>
|
|
|
|
<record model="ir.ui.view" id="vacuum_rule_form_view">
|
|
<field name="name">vacuum.rule.form.view</field>
|
|
<field name="model">vacuum.rule</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Message Vacuum Rule">
|
|
<sheet>
|
|
<group col="1">
|
|
<group col="4">
|
|
<field name="name"/>
|
|
<field name="ttype"/>
|
|
<field name="company_id"/>
|
|
<field name="retention_time"/>
|
|
<field name="active"/>
|
|
</group>
|
|
<group col="4" attrs="{'invisible': [('ttype', '!=', 'message')]}">
|
|
<field name="message_type" attrs="{'required': [('ttype', '=', 'message')]}"/>
|
|
<field name="empty_subtype"/>
|
|
</group>
|
|
<group string="Message Subtypes">
|
|
<field name="message_subtype_ids" nolabel="1"/>
|
|
</group>
|
|
<group attrs="{'invisible': [('ttype', '!=', 'attachment')]}">
|
|
<field name="filename_pattern"/>
|
|
</group>
|
|
<group string="Message Models">
|
|
<field name="model_ids" nolabel="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="model_id"/>
|
|
<field name="model" invisible="1"/>
|
|
<field name="model_filter_domain" attrs="{'invisible': [('model_id', '=', False)]}" widget="domain" options="{'model': 'model'}"/>
|
|
</group>
|
|
<group string="Description">
|
|
<field name="description"/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="vacuum_rule_tree_view">
|
|
<field name="name">vacuum.rule.form.view</field>
|
|
<field name="model">vacuum.rule</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="name"/>
|
|
<field name="company_id"/>
|
|
<field name="retention_time"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="action_vacuum_rule">
|
|
<field name="name">Message and Attachment Vacuum Rule</field>
|
|
<field name="res_model">vacuum.rule</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
<menuitem id="menu_action_vacuum_rule" parent="base.menu_email" action="action_vacuum_rule"/>
|
|
|
|
</odoo>
|