summaryrefslogtreecommitdiff
path: root/addons/mail/wizard/mail_compose_message_view.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2015-08-17 17:36:43 +0200
committerqsm-odoo <qsm@odoo.com>2015-08-26 16:41:56 +0200
commitaa6ee3fddfbac63969d216ac2290766a63364006 (patch)
treef98f9378c3354b08c2b70d228585f35ccfcaa923 /addons/mail/wizard/mail_compose_message_view.xml
parent09d7250ab6ae22f05ff3ec8e93ae5a0afb90950c (diff)
[IMP] mail: design for template use in mail dialog
Diffstat (limited to 'addons/mail/wizard/mail_compose_message_view.xml')
-rw-r--r--addons/mail/wizard/mail_compose_message_view.xml19
1 files changed, 7 insertions, 12 deletions
diff --git a/addons/mail/wizard/mail_compose_message_view.xml b/addons/mail/wizard/mail_compose_message_view.xml
index 523b8fcd794..54d8e599240 100644
--- a/addons/mail/wizard/mail_compose_message_view.xml
+++ b/addons/mail/wizard/mail_compose_message_view.xml
@@ -58,22 +58,17 @@
'required':[('no_auto_thread', '=', True), ('composition_mode', '=', 'mass_mail')]}"/>
</group>
<field name="body" options="{'style-inline': true}"/>
- <field name="attachment_ids" widget="many2many_binary" string="Attach a file"/>
+ <group col="4">
+ <field name="attachment_ids" widget="many2many_binary" string="Attach a file" nolabel="1" colspan="2"/>
+ <field name="template_id" options="{'no_create': True}"
+ context="{'default_model': model, 'default_body_html': body, 'default_subject': subject}"/>
+ </group>
<footer>
<button string="Send" name="send_mail_action" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-default" 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}"
- 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>
+ <button icon="fa-lg fa-save" type="object" name="save_as_template" string="Save as new template"
+ class="pull-right btn-default" help="Save as a new template"/>
</footer>
</form>
</field>