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.

31 lines
1.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Form view -->
  5. <record id="view_email_template_sendgrid_form" model="ir.ui.view">
  6. <field name="name">mass.mailing.sendgrid.form</field>
  7. <field name="model">mail.mass_mailing</field>
  8. <field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_form"/>
  9. <field name="arch" type="xml">
  10. <xpath expr="//field[@name='mailing_model']/.." position="after">
  11. <field name="email_template_id" domain="[('model', '=', mailing_model), ('sendgrid_template_ids', '!=', False)]"/>
  12. <field name="lang" attrs="{'invisible': [('email_template_id', '=', False)]}"/>
  13. </xpath>
  14. <xpath expr="//notebook/page[1]" position="after">
  15. <page string="Sendgrid Preview" attrs="{'invisible': [('email_template_id', '=', False)]}">
  16. <field name="html_copy" invisible="1"/>
  17. <field name="body_sendgrid" widget="html"/>
  18. </page>
  19. </xpath>
  20. <xpath expr="//notebook/page/group[1]">
  21. <group string="Sendgrid Unsubscribe">
  22. <field name="enable_unsubscribe"/>
  23. <field name="unsubscribe_text" attrs="{'invisible': [('enable_unsubscribe', '=', False)]}"/>
  24. <field name="unsubscribe_tag" attrs="{'invisible': [('enable_unsubscribe', '=', False)]}"/>
  25. </group>
  26. </xpath>
  27. </field>
  28. </record>
  29. </data>
  30. </openerp>