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.

58 lines
2.2 KiB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <record model="ir.ui.view" id="mail_digest_tree">
  4. <field name="name">mail_digest mail.digest.tree</field>
  5. <field name="model">mail.digest</field>
  6. <field name="arch" type="xml">
  7. <tree string="Mail digest">
  8. <field name="partner_id" />
  9. <field name="mail_id" />
  10. <field name="state" />
  11. </tree>
  12. </field>
  13. </record>
  14. <record model="ir.ui.view" id="mail_digest_form">
  15. <field name="name">mail_digest mail.digest.form</field>
  16. <field name="model">mail.digest</field>
  17. <field name="arch" type="xml">
  18. <form string="Mail digest">
  19. <sheet>
  20. <div class="oe_button_box" name="button_box">
  21. <button name="action_create_email" icon="fa-envelope"
  22. string="Create email now"
  23. type="object" attrs="{'invisible': [('mail_id', '!=', False)]}" />
  24. </div>
  25. <group name="main" col="2">
  26. <field name="name" />
  27. <field name="partner_id" />
  28. </group>
  29. <group name="settings" col="2">
  30. <field name="frequency" />
  31. <field name="mail_id" />
  32. <field name="state" />
  33. <field name="template_id" />
  34. </group>
  35. <group name="messages" string="Messages" col="4">
  36. <field name="message_ids" nolabel="1" />
  37. </group>
  38. </sheet>
  39. </form>
  40. </field>
  41. </record>
  42. <record model="ir.actions.act_window" id="action_digest_all">
  43. <field name="name">Digest</field>
  44. <field name="res_model">mail.digest</field>
  45. <field name="view_type">form</field>
  46. <field name="view_mode">form,tree</field>
  47. <field name="view_id" ref="mail_digest_tree" />
  48. </record>
  49. <menuitem id="menu_email_digest" parent="base.menu_email"
  50. action="action_digest_all"
  51. sequence="90"/>
  52. </odoo>