summaryrefslogtreecommitdiff
path: root/addons/mail/wizard/mail_compose_message_view.xml
diff options
context:
space:
mode:
authorJulien De Coster <julien.decoster90@gmail.com>2014-11-07 13:37:21 +0100
committerJulien De Coster <jdc@odoo.com>2015-01-07 18:01:58 +0100
commitd88c34d11e87857a799ecbb0062fe9309858413d (patch)
tree1e0afeb4514740c5f5615200c2c73de08b8561de /addons/mail/wizard/mail_compose_message_view.xml
parentfe73ab07950a7a06334deb259aacb0b05c64f3cc (diff)
[IMP] Mass mailings send in cron
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
Diffstat (limited to 'addons/mail/wizard/mail_compose_message_view.xml')
-rw-r--r--addons/mail/wizard/mail_compose_message_view.xml21
1 files changed, 20 insertions, 1 deletions
diff --git a/addons/mail/wizard/mail_compose_message_view.xml b/addons/mail/wizard/mail_compose_message_view.xml
index abbc0be0774..b217839bacf 100644
--- a/addons/mail/wizard/mail_compose_message_view.xml
+++ b/addons/mail/wizard/mail_compose_message_view.xml
@@ -4,6 +4,7 @@
<record model="ir.ui.view" id="email_compose_message_wizard_form">
<field name="name">mail.compose.message.form</field>
<field name="model">mail.compose.message</field>
+ <field name="groups_id" eval="[(4,ref('base.group_user'))]"/>
<field name="arch" type="xml">
<form string="Compose Email">
<group>
@@ -14,6 +15,8 @@
<field name="is_log" invisible="1"/>
<field name="parent_id" invisible="1"/>
<field name="mail_server_id" invisible="1"/>
+ <field name="active_domain"/>
+
<!-- Various warnings -->
<field name="use_active_domain" invisible="1"/>
<div colspan="2" class="oe_form_box_info oe_text_center"
@@ -24,6 +27,10 @@
If you want to work only with selected ids, please uncheck the
list header checkbox.
</p>
+ <br/>
+ <p>
+ <strong>Moreover, if you want to send a lot of emails, we recommend you to use the mass mailing module</strong>. <br />
+ Confirming this wizard will probably take a few minutes blocking your browser.</p>
</div>
<!-- visible wizard -->
<field name="email_from"
@@ -57,6 +64,19 @@
<button string="Send" name="send_mail" type="object" class="oe_highlight"/>
or
<button string="Cancel" class="oe_link" special="cancel" />
+
+ <group class="oe_right oe_form" col="1">
+ <div>Use template
+ <!--FIX: To avoid css issue of many2one field in footer temporary used oe_form (BUG:1152464)-->
+ <field name="template_id" nolabel="1" class='oe_inline'
+ options="{'no_create': True}"
+ on_change="onchange_template_id(template_id, composition_mode, model, res_id, context)" domain="[('model_id.model','=',model or 'mail.message')]"
+ context="{'default_model': model, 'default_body_html': body, 'default_subject': subject}"/>
+ </div>
+ <button icon="/mail/static/src/img/email_template_save.png"
+ type="object" name="save_as_template" string="Save as new template" class="oe_link"
+ help="Save as a new template"/>
+ </group>
</footer>
</form>
</field>
@@ -85,6 +105,5 @@
'default_composition_mode': 'mass_mail',
'default_partner_to': '${object.id or \'\'}',
}"/>
-
</data>
</openerp>