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.

42 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="mail_edit_form" model="ir.ui.view">
  5. <field name="name">Edit Email Form</field>
  6. <field name="model">mail.message</field>
  7. <field name="arch" type="xml">
  8. <form string="Message" create="false">
  9. <sheet>
  10. <group>
  11. <group>
  12. <field name="subject" groups="mail_edit.group_mail_edit_editor,mail_edit.group_mail_edit_superuser"/>
  13. <field name="date" readonly="1"/>
  14. <field name="type" readonly="1"/>
  15. <field name="subtype_id" readonly="1"/>
  16. </group>
  17. <group>
  18. <field name="destination_object_id" required="1" groups="mail_edit.group_mail_edit_mover,mail_edit.group_mail_edit_superuser"/>
  19. <field name="model" invisible="1"/>
  20. <field name="res_id" invisible="1"/>
  21. <field name="parent_id" readonly="1" />
  22. </group>
  23. </group>
  24. <field name="body" groups="mail_edit.group_mail_edit_editor,mail_edit.group_mail_edit_superuser"/>
  25. </sheet>
  26. </form>
  27. </field>
  28. </record>
  29. <record id="mail_edit_action" model="ir.actions.act_window">
  30. <field name="name">Edit or Move Message</field>
  31. <field name="res_model">mail.message</field>
  32. <field name="type">ir.actions.act_window</field>
  33. <field name="view_id" ref="mail_edit_form"/>
  34. <field name="view_type">form</field>
  35. <field name="view_mode">form</field>
  36. <field name="target">new</field>
  37. </record>
  38. </data>
  39. </openerp>