2021-01-26 15:06:17 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2018-01-23 13:36:17 +01:00
|
|
|
<odoo>
|
2022-11-03 15:12:03 +01:00
|
|
|
<record id="view_mail_mass_mailing_form" model="ir.ui.view">
|
2020-02-05 10:34:32 +01:00
|
|
|
<field name="model">mailing.mailing</field>
|
2021-01-26 15:06:17 +01:00
|
|
|
<field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_form" />
|
2018-01-23 13:36:17 +01:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="state" position="before">
|
2021-01-26 15:06:17 +01:00
|
|
|
<button
|
|
|
|
string="Resend"
|
|
|
|
states="done"
|
|
|
|
name="button_draft"
|
|
|
|
type="object"
|
2018-01-23 13:36:17 +01:00
|
|
|
/>
|
|
|
|
</field>
|
|
|
|
<header position="after">
|
2021-01-26 15:06:17 +01:00
|
|
|
<div
|
|
|
|
class="oe_form_box_info bg-warning oe_text_center"
|
|
|
|
attrs="{'invisible': ['|', ('state', '!=', 'draft'), ('sent', '=', 0)]}"
|
|
|
|
>
|
2018-01-23 13:36:17 +01:00
|
|
|
<p>
|
2021-01-26 15:06:17 +01:00
|
|
|
<i
|
|
|
|
class="fa fa-info-circle"
|
|
|
|
/> New sending will be done only to not sent/new recipients. If you want to resend again the mass mailing to already sent recipients, click on <b
|
2022-11-03 15:12:03 +01:00
|
|
|
>Sent</b> smart-button for removing the existing record(s).
|
2018-01-23 13:36:17 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<div name="button_box" position="attributes">
|
|
|
|
<attribute name="attrs">{'invisible': [('sent', '=', 0)]}</attribute>
|
|
|
|
</div>
|
|
|
|
</field>
|
|
|
|
</record>
|
2022-11-03 15:12:03 +01:00
|
|
|
<record id="mailing_mailing_view_form_full_width" model="ir.ui.view">
|
|
|
|
<field name="model">mailing.mailing</field>
|
|
|
|
<field
|
|
|
|
name="inherit_id"
|
|
|
|
ref="mass_mailing.mailing_mailing_view_form_full_width"
|
|
|
|
/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<button name="action_view_traces_sent" position="attributes">
|
|
|
|
<attribute
|
|
|
|
name="attrs"
|
|
|
|
>{'invisible': [('state', 'in', ('draft','test')),('sent', '=', 0)]}</attribute>
|
|
|
|
</button>
|
|
|
|
</field>
|
|
|
|
</record>
|
2018-01-23 13:36:17 +01:00
|
|
|
</odoo>
|