mailing_contact_import_views.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0"?>
  2. <odoo>
  3. <record id="mailing_contact_import_view_form" model="ir.ui.view">
  4. <field name="name">mailing.contact.import.view.form</field>
  5. <field name="model">mailing.contact.import</field>
  6. <field name="arch" type="xml">
  7. <form string="Import Mailing Contacts">
  8. <group>
  9. <field name="mailing_list_ids" string="Import contacts in"
  10. widget="many2many_tags" placeholder="Select mailing lists"
  11. options="{'no_create': True}"/>
  12. </group>
  13. <p>
  14. Write or paste email addresses in the field below.
  15. Each line will be imported as a mailing list contact.
  16. </p>
  17. <label for="contact_list" class="mb-2">Contact List</label>
  18. <field name="contact_list"
  19. nolabel="1" default_focus="1"
  20. placeholder='"Damien Roberts" &lt;d.roberts@example.com&gt;&#10;"Rick Sanchez" &lt;rick_sanchez@example.com&gt;&#10;victor_hugo@example.com'/>
  21. <p class="text-muted mb-0">
  22. Want to import country, company name and more?
  23. <button type="object" name="action_open_base_import"
  24. class="fw-normal px-0 btn btn-link">
  25. Upload a file
  26. </button>
  27. </p>
  28. <footer>
  29. <button string="Import" type="object" name="action_import"
  30. class="btn-primary" data-hotkey="i"/>
  31. <button string="Discard" class="btn-secondary"
  32. special="cancel" data-hotkey="z"/>
  33. </footer>
  34. </form>
  35. </field>
  36. </record>
  37. <record id="mailing_contact_import_action" model="ir.actions.act_window">
  38. <field name="name">Import Mailing Contacts</field>
  39. <field name="res_model">mailing.contact.import</field>
  40. <field name="view_mode">form</field>
  41. <field name="target">new</field>
  42. </record>
  43. </odoo>