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.

89 lines
3.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- © 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <openerp>
  5. <data>
  6. <record id="mail_unsubscription_view_form" model="ir.ui.view">
  7. <field name="name">Mail Unsubscription Form</field>
  8. <field name="model">mail.unsubscription</field>
  9. <field name="arch" type="xml">
  10. <form>
  11. <sheet>
  12. <group>
  13. <field name="date"/>
  14. <field name="mass_mailing_id"/>
  15. <field name="unsubscriber_id"/>
  16. <field name="email"/>
  17. <field name="success"/>
  18. <field name="reason_id"/>
  19. <field name="details"
  20. attrs="{'required': [('details_required', '=', True)]}"/>
  21. <field name="details_required" invisible="True"/>
  22. </group>
  23. </sheet>
  24. <div class="oe_chatter">
  25. <field name="message_follower_ids"
  26. widget="mail_followers"
  27. groups="base.group_user"/>
  28. <field name="message_ids"
  29. widget="mail_thread"/>
  30. </div>
  31. </form>
  32. </field>
  33. </record>
  34. <record id="mail_unsubscription_view_tree" model="ir.ui.view">
  35. <field name="name">Mail Unsubscription Tree</field>
  36. <field name="model">mail.unsubscription</field>
  37. <field name="arch" type="xml">
  38. <tree>
  39. <field name="date"/>
  40. <field name="mass_mailing_id"/>
  41. <field name="unsubscriber_id"/>
  42. <field name="email" invisible="True"/>
  43. <field name="reason_id"/>
  44. <field name="details" invisible="True"/>
  45. </tree>
  46. </field>
  47. </record>
  48. <record id="mail_unsubscription_view_search" model="ir.ui.view">
  49. <field name="name">Mail Unsubscription Search</field>
  50. <field name="model">mail.unsubscription</field>
  51. <field name="arch" type="xml">
  52. <search>
  53. <field name="mass_mailing_id"/>
  54. <field name="unsubscriber_id"/>
  55. <field name="email"/>
  56. <field name="success"/>
  57. <field name="reason_id"/>
  58. <field name="details"/>
  59. <separator/>
  60. <group string="Group by">
  61. <filter string="Month"
  62. context="{'group_by': 'date:month'}"/>
  63. <filter string="Year"
  64. context="{'group_by': 'date:year'}"/>
  65. <filter string="Reason"
  66. context="{'group_by': 'reason_id'}"/>
  67. <filter string="Mass mailing"
  68. context="{'group_by': 'mass_mailing_id'}"/>
  69. <filter string="Success"
  70. context="{'group_by': 'success'}"/>
  71. </group>
  72. </search>
  73. </field>
  74. </record>
  75. <act_window id="mail_unsubscription_action"
  76. name="Unsubscriptions"
  77. res_model="mail.unsubscription"/>
  78. <menuitem id="mail_unsubscription_menu"
  79. parent="mass_mailing.mass_mailing_campaign"
  80. action="mail_unsubscription_action"/>
  81. </data>
  82. </openerp>