1. The merge of the "email_template" module into the "mail" module. 2. The send action of the mass mailing has been moved from the frontend to a cron, because it was too slow to send over 10,000 mails (the user's browser was blocked for 15 - 20 minutes). Mass mailings have now their own process in the kanban view. 3. Mails sent from the mail form are sent immediatly instead of from the mail queue (for instance, when you go to sales > customers > list view > select 2 -3 customers > More > Partner Mass Mailing). 4. Users have now the choice from which mailing list they want to unsubscribe when they click on the unsubscribe link at the bottom of the mail. 5. Mass mailings inherit from their campaign UTMs and mass mailing campaigns are linked to an UTM campaign. 6. Many little improvements
60 lines
2.7 KiB
XML
60 lines
2.7 KiB
XML
<?xml version="1.0" ?>
|
|
<openerp>
|
|
<data>
|
|
<record model="ir.ui.view" id="res_partner_opt_out_form">
|
|
<field name="name">res.partner.opt_out.form</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='active']" position="after">
|
|
<field name="opt_out"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="res_partner_opt_out_search">
|
|
<field name="name">res.partner.opt_out.search</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_res_partner_filter"/>
|
|
<field name="arch" type="xml">
|
|
<filter string="Suppliers" position="after">
|
|
<separator />
|
|
<filter string="Available for mass mailing"
|
|
name='not_opt_out' domain="[('opt_out', '=', False)]"
|
|
help="Partners that did not ask not to be included in mass mailing campaigns" />
|
|
</filter>
|
|
</field>
|
|
</record>
|
|
|
|
<!--Definition of an email template with an empty body that will be used in partner mailing. Used to give a
|
|
basis for email recipients, name and to ease the definition of a further elaborated template. -->
|
|
<record id="email_template_partner" model="mail.template">
|
|
<field name="name">Partner Mass Mail</field>
|
|
<field name="model_id" ref="base.model_res_partner"/>
|
|
<field name="auto_delete" eval="True"/>
|
|
<field name="partner_to">${object.id}</field>
|
|
</record>
|
|
|
|
<!-- Replace the default mass-mailing wizard in base with the composition wizard -->
|
|
<act_window name="Partner Mass Mailing"
|
|
res_model="mail.compose.message"
|
|
src_model="res.partner"
|
|
view_mode="form"
|
|
multi="True"
|
|
target="new"
|
|
key2="client_action_multi"
|
|
id="base.action_partner_mass_mail"
|
|
context="{
|
|
'default_composition_mode': 'mass_mail',
|
|
'default_partner_to': '${object.id or \'\'}',
|
|
'default_use_template': True,
|
|
'default_template_id': ref('email_template_partner'),
|
|
}"/>
|
|
|
|
<record id="email_template_partner" model="mail.template">
|
|
<field name="ref_ir_act_window" ref="base.action_partner_mass_mail"/>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|