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. <!-- Copyright 2016 Tecnativa - Pedro M. Baeza
  3. Copyright 2016 Carlos Dauden - Tecnativa <carlos.dauden@tecnativa.com>
  4. Copyright 2017 Tecnativa <vicent.cubellsn@tecnativa.com>
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
  6. <odoo>
  7. <record id="view_partner_form_mailgun" model="ir.ui.view">
  8. <field name="name">Partner Mailgun button</field>
  9. <field name="model">res.partner</field>
  10. <field name="inherit_id" ref="mail_tracking.view_partner_form"/>
  11. <field name="arch" type="xml">
  12. <field name="email_bounced" position="after">
  13. <label for="check_email_bounced" string="Mailgun"
  14. attrs="{'invisible': [('email', '=', False)]}"/>
  15. <group col="3" name="mailgun_buttons" attrs="{'invisible': [('email', '=', False)]}">
  16. <button name="check_email_bounced" type="object" string="Check Mailgun" class="oe_link"/>
  17. <button name="check_email_validity" type="object" string="Check email validity" class="oe_link"/>
  18. <button name="force_set_bounced" type="object" string="Set Bounced" class="oe_link"
  19. attrs="{'invisible': [('email_bounced', '=', True)]}"/>
  20. <button name="force_unset_bounced" type="object" string="Unset Bounced" class="oe_link"
  21. attrs="{'invisible': [('email_bounced', '=', False)]}"/>
  22. </group>
  23. </field>
  24. </field>
  25. </record>
  26. </odoo>