2011-02-17 10:59:12 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
2012-06-28 06:40:05 +00:00
|
|
|
<data>
|
2011-02-21 09:54:01 +00:00
|
|
|
<record model="ir.ui.view" id="email_compose_message_wizard_form">
|
2011-07-22 16:34:57 +00:00
|
|
|
<field name="name">mail.compose.message.form</field>
|
2012-06-14 08:40:33 +00:00
|
|
|
<field name="model">mail.compose.message</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-15 11:17:32 +00:00
|
|
|
<form string="Compose Email" version="7.0">
|
2012-07-02 08:46:32 +00:00
|
|
|
<group>
|
2012-10-19 11:34:40 +00:00
|
|
|
<!-- truly invisible fields for control and options -->
|
2012-11-09 10:16:28 +00:00
|
|
|
<field name="composition_mode" invisible="1"/>
|
|
|
|
<field name="model" invisible="1"/>
|
|
|
|
<field name="res_id" invisible="1"/>
|
2014-03-17 12:24:09 +00:00
|
|
|
<field name="is_log" invisible="1"/>
|
2012-11-09 10:16:28 +00:00
|
|
|
<field name="parent_id" invisible="1"/>
|
2013-07-22 13:17:25 +00:00
|
|
|
<field name="mail_server_id" invisible="1"/>
|
2013-10-17 09:38:30 +00:00
|
|
|
<!-- Various warnings -->
|
2013-07-25 13:50:29 +00:00
|
|
|
<field name="use_active_domain" invisible="1"/>
|
2013-10-17 09:38:30 +00:00
|
|
|
<div colspan="2" class="oe_form_box_info oe_text_center"
|
|
|
|
attrs="{'invisible': [('use_active_domain', '!=', True)]}">
|
|
|
|
<p>
|
|
|
|
<strong>All records matching your current search filter will be mailed,
|
|
|
|
not only the ids selected in the list view.</strong><br />
|
|
|
|
If you want to work only with selected ids, please uncheck the
|
|
|
|
list header checkbox.
|
|
|
|
</p>
|
|
|
|
</div>
|
2012-10-19 11:34:40 +00:00
|
|
|
<!-- visible wizard -->
|
2013-02-25 16:48:57 +00:00
|
|
|
<field name="email_from"
|
|
|
|
attrs="{'invisible':[('composition_mode', '!=', 'mass_mail')]}"/>
|
2013-03-05 12:42:59 +00:00
|
|
|
<field name="subject" placeholder="Subject..." required="True"/>
|
2014-02-20 15:29:45 +00:00
|
|
|
<!-- recipients -->
|
2014-03-17 12:24:09 +00:00
|
|
|
<label for="partner_ids" string="Recipients" attrs="{'invisible': [('is_log', '=', True)]}" groups="base.group_user"/>
|
|
|
|
<div groups="base.group_user" attrs="{'invisible': [('is_log', '=', True)]}">
|
2014-02-20 15:29:45 +00:00
|
|
|
<span attrs="{'invisible': [('composition_mode', '!=', 'mass_mail')]}">
|
|
|
|
<strong>Email mass mailing</strong> on
|
|
|
|
<span attrs="{'invisible': [('use_active_domain', '=', True)]}">the selected records</span>
|
|
|
|
<span attrs="{'invisible': [('use_active_domain', '=', False)]}">the current search filter</span>.
|
2012-11-09 13:56:12 +00:00
|
|
|
</span>
|
2014-04-15 14:33:43 +00:00
|
|
|
<span attrs="{'invisible':[('composition_mode', '!=', 'comment')]}">Followers of the document and</span>
|
2012-11-09 13:56:12 +00:00
|
|
|
<field name="partner_ids" widget="many2many_tags_email" placeholder="Add contacts to notify..."
|
2014-02-20 15:29:45 +00:00
|
|
|
context="{'force_email':True, 'show_email':True}"
|
|
|
|
attrs="{'invisible': [('composition_mode', '!=', 'comment')]}"/>
|
2012-11-09 13:56:12 +00:00
|
|
|
</div>
|
2014-02-20 15:29:45 +00:00
|
|
|
<!-- mass post -->
|
2013-09-10 12:47:54 +00:00
|
|
|
<field name="notify"
|
2014-02-20 15:29:45 +00:00
|
|
|
attrs="{'invisible':['|', ('composition_mode', '!=', 'mass_post')]}"/>
|
|
|
|
<!-- mass mailing -->
|
2014-03-17 12:24:09 +00:00
|
|
|
<field name="same_thread" attrs="{'invisible':[('composition_mode', '!=', 'mass_mail')]}"/>
|
2014-02-20 15:29:45 +00:00
|
|
|
<field name="reply_to" placeholder="Email address to redirect replies..."
|
2013-09-10 12:47:54 +00:00
|
|
|
attrs="{'invisible':['|', ('same_thread', '=', True), ('composition_mode', '!=', 'mass_mail')],
|
2014-02-20 15:29:45 +00:00
|
|
|
'required':[('same_thread', '!=', True), ('composition_mode', '=', 'mass_mail')]}"/>
|
2012-06-14 08:40:33 +00:00
|
|
|
</group>
|
2012-10-24 12:28:03 +00:00
|
|
|
<field name="body"/>
|
2013-02-25 16:48:57 +00:00
|
|
|
<field name="attachment_ids" widget="many2many_binary" string="Attach a file"/>
|
2012-07-10 16:40:11 +00:00
|
|
|
<footer>
|
2012-10-24 12:28:03 +00:00
|
|
|
<button string="Send" name="send_mail" type="object" class="oe_highlight"/>
|
2012-07-10 16:40:11 +00:00
|
|
|
or
|
|
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
|
|
</footer>
|
2012-06-14 08:40:33 +00:00
|
|
|
</form>
|
2011-02-17 10:59:12 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2011-02-21 09:54:01 +00:00
|
|
|
<record id="action_email_compose_message_wizard" model="ir.actions.act_window">
|
2011-08-23 17:58:09 +00:00
|
|
|
<field name="name">Compose Email</field>
|
2011-07-22 16:34:57 +00:00
|
|
|
<field name="res_model">mail.compose.message</field>
|
|
|
|
<field name="src_model">mail.compose.message</field>
|
2011-02-17 10:59:12 +00:00
|
|
|
<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>
|
|
|
|
|
2012-06-28 06:40:05 +00:00
|
|
|
<!-- Replace the default mass-mailing wizard in base with the composition wizard -->
|
2013-03-12 13:38:17 +00:00
|
|
|
<act_window name="Partner Mass Mailing"
|
2012-06-28 06:40:05 +00:00
|
|
|
res_model="mail.compose.message"
|
|
|
|
src_model="res.partner"
|
|
|
|
view_mode="form"
|
2012-10-19 09:23:08 +00:00
|
|
|
multi="True"
|
2012-06-28 06:40:05 +00:00
|
|
|
target="new"
|
|
|
|
key2="client_action_multi"
|
|
|
|
id="base.action_partner_mass_mail"
|
2013-02-25 16:48:57 +00:00
|
|
|
context="{
|
|
|
|
'default_composition_mode': 'mass_mail',
|
|
|
|
'default_partner_to': '${object.id or \'\'}',
|
|
|
|
}"/>
|
2013-03-12 13:38:17 +00:00
|
|
|
|
2012-06-28 06:40:05 +00:00
|
|
|
</data>
|
2011-02-17 10:59:12 +00:00
|
|
|
</openerp>
|