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.

57 lines
2.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record model="ir.ui.view" id="message_vacuum_rule_form_view">
  4. <field name="name">message.vacuum.rule.form.view</field>
  5. <field name="model">message.vacuum.rule</field>
  6. <field name="arch" type="xml">
  7. <form string="Message Vacuum Rule">
  8. <sheet>
  9. <group col="4">
  10. <group col="4" colspan="4">
  11. <field name="name" colspan="2"/>
  12. <field name="company_id" colspan="2"/>
  13. <field name="message_type" colspan="2"/>
  14. <field name="empty_subtype" colspan="2"/>
  15. <field name="retention_time" colspan="2"/>
  16. <field name="active" colspan="2"/>
  17. </group>
  18. <separator string="Message Models" colspan="4"/>
  19. <field name="model_ids" nolabel="1" colspan="4"/>
  20. <field name="model_id" colspan="4"/>
  21. <field name="model_filter_domain" attrs="{'invisible': [('model_id', '=', False)]}" colspan="4"/>
  22. <separator string="Message Subtypes" colspan="4"/>
  23. <field name="message_subtype_ids" nolabel="1" colspan="4"/>
  24. <separator string="Description" colspan="4"/>
  25. <field name="description" nolabel="1" colspan="4"/>
  26. </group>
  27. </sheet>
  28. </form>
  29. </field>
  30. </record>
  31. <record model="ir.ui.view" id="message_vacuum_rule_tree_view">
  32. <field name="name">message.vacuum.rule.form.view</field>
  33. <field name="model">message.vacuum.rule</field>
  34. <field name="arch" type="xml">
  35. <tree>
  36. <field name="name"/>
  37. <field name="company_id"/>
  38. <field name="message_type"/>
  39. <field name="empty_subtype"/>
  40. <field name="retention_time"/>
  41. </tree>
  42. </field>
  43. </record>
  44. <record model="ir.actions.act_window" id="action_message_vacuum_rule">
  45. <field name="name">Message Vacuum Rule</field>
  46. <field name="res_model">message.vacuum.rule</field>
  47. <field name="view_type">form</field>
  48. <field name="view_mode">tree,form</field>
  49. </record>
  50. <menuitem id="menu_action_message_vacuum_rule" parent="base.menu_email" action="action_message_vacuum_rule"/>
  51. </odoo>