summaryrefslogtreecommitdiff
path: root/addons/mail/wizard/mail_compose_message_view.xml
diff options
context:
space:
mode:
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>