mailing_contact_subscription_views.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record model="ir.ui.view" id="mailing_contact_subscription_view_form">
  4. <field name="name">mailing.contact.subscription.view.form</field>
  5. <field name="model">mailing.contact.subscription</field>
  6. <field name="priority">10</field>
  7. <field name="arch" type="xml">
  8. <form string="Mailing List Subscription">
  9. <sheet>
  10. <group>
  11. <field name="list_id"/>
  12. <field name="is_blacklisted" invisible="1"/>
  13. <label for="contact_id" class="oe_inline"/>
  14. <div class="o_row o_row_readonly">
  15. <i class="fa fa-ban text-danger" role="img" title="This email is blacklisted for mass mailings"
  16. aria-label="Blacklisted" attrs="{'invisible': [('is_blacklisted', '=', False)]}" groups="base.group_user"></i>
  17. <field name="contact_id"/>
  18. </div>
  19. <field name="unsubscription_date" readonly="1"/>
  20. <field name="opt_out"/>
  21. <field name="message_bounce" readonly="1"/>
  22. </group>
  23. </sheet>
  24. </form>
  25. </field>
  26. </record>
  27. <record model="ir.ui.view" id="mailing_contact_subscription_view_tree">
  28. <field name="name">mailing.contact.subscription.view.tree</field>
  29. <field name="model">mailing.contact.subscription</field>
  30. <field name="arch" type="xml">
  31. <tree string="Mailing List Subscriptions">
  32. <field name="contact_id"/>
  33. <field name="unsubscription_date"/>
  34. <field name="opt_out"/>
  35. <field name="message_bounce"/>
  36. <field name="is_blacklisted"/>
  37. </tree>
  38. </field>
  39. </record>
  40. <record model="ir.ui.view" id="mailing_contact_subscription_view_search">
  41. <field name="name">mailing.contact.subscription.view.search</field>
  42. <field name="model">mailing.contact.subscription</field>
  43. <field name="arch" type="xml">
  44. <search string="Mailing List Subscriptions">
  45. <field name="contact_id"/>
  46. <field name="opt_out"/>
  47. <field name="list_id"/>
  48. </search>
  49. </field>
  50. </record>
  51. </odoo>