summaryrefslogtreecommitdiff
path: root/addons/mail/wizard
diff options
context:
space:
mode:
authorVijaykumar Baladaniya <vba@tinyerp.com>2012-07-09 18:31:13 +0530
committerVijaykumar Baladaniya <vba@tinyerp.com>2012-07-09 18:31:13 +0530
commitbe2e95656aaa113addea2b510fcdcf2f890eaaa4 (patch)
treeabcb3dd4ef350a1b8ad0eaffdd2b9a1cb91521af /addons/mail/wizard
parentb982ea278b33132def3927417b7a854b98b5028a (diff)
parent3925f76ce85854e5d4834902a05f57bcfc5ace85 (diff)
[MERGE]merged with trunk-survey-layout-tta
bzr revid: vba@tinyerp.com-20120709130113-3lchipgil9oqpglg
Diffstat (limited to 'addons/mail/wizard')
-rw-r--r--addons/mail/wizard/mail_compose_message.py4
-rw-r--r--addons/mail/wizard/mail_compose_message_view.xml52
2 files changed, 28 insertions, 28 deletions
diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py
index dd07cbce9b2..cb2ed1eec19 100644
--- a/addons/mail/wizard/mail_compose_message.py
+++ b/addons/mail/wizard/mail_compose_message.py
@@ -34,7 +34,7 @@ from ..mail_message import to_email
EXPRESSION_PATTERN = re.compile('(\$\{.+?\})')
class mail_compose_message(osv.osv_memory):
- """Generic E-mail composition wizard. This wizard is meant to be inherited
+ """Generic Email composition wizard. This wizard is meant to be inherited
at model and view level to provide specific wizard features.
The behavior of the wizard can be modified through the use of context
@@ -58,7 +58,7 @@ class mail_compose_message(osv.osv_memory):
"""
_name = 'mail.compose.message'
_inherit = 'mail.message.common'
- _description = 'E-mail composition wizard'
+ _description = 'Email composition wizard'
def default_get(self, cr, uid, fields, context=None):
"""Overridden to provide specific defaults depending on the context
diff --git a/addons/mail/wizard/mail_compose_message_view.xml b/addons/mail/wizard/mail_compose_message_view.xml
index d559d679c8b..3da63fb1adc 100644
--- a/addons/mail/wizard/mail_compose_message_view.xml
+++ b/addons/mail/wizard/mail_compose_message_view.xml
@@ -1,24 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
- <data>
+ <data>
<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="type">form</field>
<field name="arch" type="xml">
- <form string="Compose Email">
- <group col="6" colspan="4">
+ <form string="Compose Email" version="7.0">
+ <header>
+ <button name="send_mail" string="Send" type="object" class="oe_highlight" />
+ or
+ <button string="Cancel" class="oe_link" special="cancel" />
+ </header>
+ <group>
<field name="model" invisible="1"/>
<field name="res_id" invisible="1"/>
<field name='filter_id' invisible="context.get('active_model',False)"/>
- <field name="email_from" colspan="4" required="1"/>
- <field name="email_to" colspan="4" required="1"/>
- <field name="email_cc" colspan="4"/>
- <field name="email_bcc" colspan="4"/>
- <field name="reply_to" colspan="4"/>
- <field name="subject" colspan="4" widget="char" size="512"/>
- <field name="references" invisible="1"/>
- <field name="message_id" invisible="1"/>
+ <field name="email_from" required="1"/>
+ <field name="email_to" required="1"/>
+ <field name="email_cc"/>
+ <field name="email_bcc"/>
+ <field name="reply_to"/>
+ <field name="subject" widget="char" size="512"/>
+ <field name="references"/>
+ <field name="message_id"/>
</group>
<notebook colspan="4">
<page string="Body">
@@ -28,11 +33,6 @@
<field name="attachment_ids" colspan="4" nolabel="1"/>
</page>
</notebook>
- <group col="4" colspan="4">
- <label string="" name="placeholder" colspan="1"/>
- <button icon="gtk-close" special="cancel" string="Cancel"/>
- <button icon="gtk-ok" name="send_mail" string="Send" type="object"/>
- </group>
</form>
</field>
</record>
@@ -47,14 +47,14 @@
<field name="target">new</field>
</record>
- <!-- Replace the default mass-mailing wizard in base with the composition wizard -->
- <act_window name="Mass Mailing"
- res_model="mail.compose.message"
- src_model="res.partner"
- view_mode="form"
- target="new"
- key2="client_action_multi"
- id="base.action_partner_mass_mail"
- context="{'mail.compose.message.mode':'mass_mail'}"/>
- </data>
+ <!-- Replace the default mass-mailing wizard in base with the composition wizard -->
+ <act_window name="Mass Mailing"
+ res_model="mail.compose.message"
+ src_model="res.partner"
+ view_mode="form"
+ target="new"
+ key2="client_action_multi"
+ id="base.action_partner_mass_mail"
+ context="{'mail.compose.message.mode':'mass_mail'}"/>
+ </data>
</openerp>