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

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