diff options
Diffstat (limited to 'addons/mail/wizard/mail_compose_message_view.xml')
| -rw-r--r-- | addons/mail/wizard/mail_compose_message_view.xml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/addons/mail/wizard/mail_compose_message_view.xml b/addons/mail/wizard/mail_compose_message_view.xml new file mode 100644 index 00000000000..ec2a038f073 --- /dev/null +++ b/addons/mail/wizard/mail_compose_message_view.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <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"> + <field name="model" invisible="context.get('active_model',False)"/> + <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="auto_delete" colspan="4" invisible="1"/> + </group> + <separator string="" colspan="4"/> + <notebook colspan="4"> + <page string="Body"> + <field name="body_text" colspan="4" nolabel="1"/> + </page> + <page string="Attachments"> + <label string="Add here all attachments of the current document you want to include in the Email." colspan="4"/> + <field name="attachment_ids" colspan="4" nolabel="1"/> + </page> + </notebook> + <group col="4" colspan="4"> + <label string="" colspan="1"/> + <button icon="gtk-close" special="cancel" string="Close"/> + <button icon="gtk-ok" name="send_mail" string="Send" type="object"/> + </group> + </form> + </field> + </record> + + <record id="action_email_compose_message_wizard" model="ir.actions.act_window"> + <field name="name">Compose E-mail</field> + <field name="res_model">mail.compose.message</field> + <field name="src_model">mail.compose.message</field> + <field name="type">ir.actions.act_window</field> + <field name="view_type">form</field> + <field name="view_mode">form</field> + <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="{'mass_mail':True}"/> + </data> +</openerp> |
