103 lines
5.6 KiB
XML
103 lines
5.6 KiB
XML
<?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="arch" type="xml">
|
|
<form string="Compose Email" version="7.0">
|
|
<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" 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">
|
|
<field name="body_text" colspan="4" nolabel="1" height="300" width="300"/>
|
|
</page>
|
|
<page string="Attachments">
|
|
<field name="attachment_ids" colspan="4" nolabel="1"/>
|
|
</page>
|
|
</notebook>
|
|
<footer>
|
|
<button name="send_mail" string="Send" type="object" class="oe_highlight" />
|
|
or
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="email_compose_message_wizard_form_chatter">
|
|
<field name="name">mail.compose.message.form</field>
|
|
<field name="model">mail.compose.message</field>
|
|
<field name="priority">18</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Compose Email" version="7.0" >
|
|
<group>
|
|
<field name="subject" colspan="2" nolabel="1" placeholder="Subject..."
|
|
class="oe_mail_compose_message_subject oe_mail_compose_message_invisible"/>
|
|
<field name="body_text" colspan="2" nolabel="1" placeholder="What are you working on ?"
|
|
class="oe_mail_compose_message_body_text"/>
|
|
<field name="body_html" colspan="2" nolabel="1" placeholder="What are you working on HTML ?"
|
|
class="oe_mail_compose_message_body_html oe_mail_compose_message_invisible" widget="text_html"/>
|
|
<field name="dest_partner_ids" colspan="2" nolabel="1" widget="many2many_tags"
|
|
placeholder="Add contacts to notify..."
|
|
class="oe_mail_compose_message_partner_ids oe_mail_compose_message_invisible"/>
|
|
<div>
|
|
<button name="send_mail" string="Post" type="object"
|
|
class="oe_mail_compose_message_button_send"/>
|
|
or <a href="#" class="oe_mail_compose_message_email">Send an Email</a>
|
|
</div>
|
|
<div class='oe_mail_compose_message_icons'>
|
|
<!-- <button icon="../../../../../mail/static/src/img/checklist"
|
|
type="object" name="checklist" string=""
|
|
help="Add a checklist"/> -->
|
|
<a href="#" class="oe_mail_compose_message_checklist">
|
|
<img src='/mail/static/src/img/checklist.png/' alt='Checklist'
|
|
title='Add a checklist'/>
|
|
</a>
|
|
<a href="#" class="oe_mail_compose_message_attachment">
|
|
<img src='/mail/static/src/img/attachment.png/' alt='Attachment'
|
|
title='Add an attachment'/>
|
|
</a>
|
|
<a href="#" class="oe_mail_compose_message_formatting">
|
|
<img src='/mail/static/src/img/formatting.png/' alt='Formatting'
|
|
title='Switch to advanced formatting mode'/>
|
|
</a>
|
|
</div>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_email_compose_message_wizard" model="ir.actions.act_window">
|
|
<field name="name">Compose Email</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="{'mail.compose.message.mode':'mass_mail'}"/>
|
|
</data>
|
|
</openerp>
|