2021-01-26 17:37:52 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2017-10-17 20:38:11 +02:00
|
|
|
<!-- Copyright 2016 Tecnativa - Pedro M. Baeza
|
|
|
|
Copyright 2016 Carlos Dauden - Tecnativa <carlos.dauden@tecnativa.com>
|
|
|
|
Copyright 2017 Tecnativa <vicent.cubellsn@tecnativa.com>
|
|
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
|
|
|
|
<odoo>
|
|
|
|
|
|
|
|
<record id="view_partner_form_mailgun" model="ir.ui.view">
|
|
|
|
<field name="name">Partner Mailgun button</field>
|
|
|
|
<field name="model">res.partner</field>
|
2021-01-26 17:37:52 +01:00
|
|
|
<field name="inherit_id" ref="mail_tracking.view_partner_form" />
|
2017-10-17 20:38:11 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="email_bounced" position="after">
|
2021-01-26 17:37:52 +01:00
|
|
|
<label
|
|
|
|
for="check_email_bounced"
|
|
|
|
string="Mailgun"
|
|
|
|
attrs="{'invisible': [('email', '=', False)]}"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
name="mailgun_buttons"
|
|
|
|
attrs="{'invisible': [('email', '=', False)]}"
|
|
|
|
>
|
|
|
|
<button
|
|
|
|
name="check_email_bounced"
|
|
|
|
type="object"
|
|
|
|
string="Check Mailgun"
|
|
|
|
class="oe_link"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
name="check_email_validity"
|
|
|
|
type="object"
|
|
|
|
string="Check email validity"
|
|
|
|
class="oe_link"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
name="force_set_bounced"
|
|
|
|
type="object"
|
|
|
|
string="Set Bounced"
|
|
|
|
class="oe_link"
|
|
|
|
attrs="{'invisible': [('email_bounced', '=', True)]}"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
name="force_unset_bounced"
|
|
|
|
type="object"
|
|
|
|
string="Unset Bounced"
|
|
|
|
class="oe_link"
|
|
|
|
attrs="{'invisible': [('email_bounced', '=', False)]}"
|
|
|
|
/>
|
2018-05-08 18:24:36 +02:00
|
|
|
</div>
|
2017-10-17 20:38:11 +02:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</odoo>
|