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.

28 lines
1.5 KiB

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