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.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2017 Tecnativa - Jairo Llopis
  3. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <record id="view_mail_mass_mailing_list_form" model="ir.ui.view">
  6. <field name="name">Add sync stuff</field>
  7. <field name="model">mail.mass_mailing.list</field>
  8. <field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_list_form"/>
  9. <field name="arch" type="xml">
  10. <xpath expr="//div[@class='oe_title']" position="after">
  11. <group name="dynamic" string="Dynamic list">
  12. <group colspan="4">
  13. <field
  14. name="dynamic"
  15. />
  16. </group>
  17. <group attrs="{'invisible': [('dynamic', '=', False)]}">
  18. <label for="sync_method"/>
  19. <div>
  20. <field
  21. name="sync_method"
  22. />
  23. <button
  24. name="action_sync"
  25. type="object"
  26. string="Sync now"
  27. icon="fa-refresh"
  28. />
  29. </div>
  30. </group>
  31. <group attrs="{'invisible': [('dynamic', '=', False)]}">
  32. <div
  33. class="alert alert-info"
  34. role="alert"
  35. >
  36. <i class="fa fa-info-circle"/> If you want to remove contacts from a dynamic list, just <b>set them as <i>Opt Out</i></b>.
  37. </div>
  38. <div
  39. class="alert alert-warning"
  40. role="alert"
  41. >
  42. <i class="fa fa-info-circle"/> You cannot make manual editions of contacts in fully synchronized lists.
  43. </div>
  44. </group>
  45. <group colspan="4"
  46. attrs="{'invisible': [('dynamic', '=', False)]}">
  47. <field
  48. name="sync_domain"
  49. widget="char_domain"
  50. options='{"model": "res.partner"}'
  51. />
  52. </group>
  53. <button
  54. name="%(action_mail_mass_mailing_load_filter)d"
  55. type="action"
  56. string="Load filter"
  57. icon="fa-filter"
  58. colspan="1"
  59. />
  60. </group>
  61. </xpath>
  62. </field>
  63. </record>
  64. </odoo>