2016-10-14 09:44:01 +02:00
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="noname_view_mail_mass_mailing_contact_tree">
|
|
|
|
<field name="name">mail.mass_mailing.contact.tree</field>
|
|
|
|
<field name="model">mail.mass_mailing.contact</field>
|
|
|
|
<field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_tree" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="name" position="attributes">
|
|
|
|
<attribute name="invisible">1</attribute>
|
|
|
|
</field>
|
|
|
|
<field name="list_id" position="after">
|
|
|
|
<field name="create_uid" string="Source" readonly="1" />
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<!-- The fields "unsubscribed_by_odoo_user" & "unsubscription_date" must be displayed so that
|
|
|
|
the new function on_change_opt_out() can edit their value in the UI
|
|
|
|
Note: the "on_change" functions can only work in the UI
|
|
|
|
-->
|
|
|
|
<field name="opt_out" position="after">
|
|
|
|
<field name="unsubscription_date" invisible="1"/>
|
|
|
|
<field name="unsubscribed_by_odoo_user" invisible="1" />
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2018-04-18 17:40:31 +02:00
|
|
|
|
|
|
|
<record model="ir.ui.view" id="groupeurd_view_mail_mass_mailing_form">
|
|
|
|
<field name="name">mail.mass_mailing.form</field>
|
|
|
|
<field name="model">mail.mass_mailing</field>
|
|
|
|
<field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_form" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<button name="send_mail" position="replace"></button> <!-- Empty replace to remove the first original "send_mail" button. -->
|
|
|
|
<button name="send_mail" position="replace"> <!-- This second "send_mail" replace will replace the second original "send_mail" with two new buttons. -->
|
|
|
|
<button name="send_mail" type="object"
|
|
|
|
attrs="{'invisible': ['|', ('scheduled', '>', 0), '|', ('state', '=', 'done'), ('body_html', '=', False)]}"
|
|
|
|
class="oe_highlight" string="Send to All" confirm="This will send the email to all recipients. Do you still want to proceed ?"/>
|
|
|
|
<button name="send_mail" type="object"
|
|
|
|
attrs="{'invisible': ['|', ('scheduled', '>', 0), '&', ('state', '!=', 'done'), ('body_html', '!=', False)]}"
|
|
|
|
string="Send to All" confirm="This will send the email to all recipients. Do you still want to proceed ?"/>
|
|
|
|
</button>
|
|
|
|
</field>
|
|
|
|
</record>
|
2016-10-14 09:44:01 +02:00
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|