Failing to force a manual update of the mail module would cause all composer wizards to display html contents without the WYSIWYG editor, making it mostly unusable for regular users. Users are not expected to always force an update of all modules after updating to the latest source code. bzr revid: odo@openerp.com-20130417081410-dwc33ymizlihvbng
66 lines
3.4 KiB
XML
66 lines
3.4 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>
|
|
<!-- truly invisible fields for control and options -->
|
|
<field name="composition_mode" invisible="1"/>
|
|
<field name="model" invisible="1"/>
|
|
<field name="res_id" invisible="1"/>
|
|
<field name="parent_id" invisible="1"/>
|
|
<!-- visible wizard -->
|
|
<label for="partner_ids" string="Recipients"
|
|
invisible="context.get('mail_compose_log', False)"/>
|
|
<div groups="base.group_user" invisible="context.get('mail_compose_log', False)">
|
|
<span attrs="{'invisible':['|', ('model', '=', False), ('composition_mode', '!=', 'mass_mail')]}">
|
|
Followers of selected items and
|
|
</span>
|
|
<span attrs="{'invisible':['|', ('model', '=', False), ('composition_mode', '=', 'mass_mail')]}">
|
|
Followers of
|
|
<field name="record_name" readonly="1" class="oe_inline"
|
|
attrs="{'invisible':[('model', '=', False)]}"/>
|
|
and
|
|
</span>
|
|
<field name="partner_ids" widget="many2many_tags_email" placeholder="Add contacts to notify..."
|
|
context="{'force_email':True, 'show_email':True}"/>
|
|
</div>
|
|
<field name="subject" placeholder="Subject..."/>
|
|
</group>
|
|
<field name="body"/>
|
|
<field name="attachment_ids" widget="many2many_binary"/>
|
|
<footer>
|
|
<button string="Send" name="send_mail" type="object" class="oe_highlight"/>
|
|
or
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
</footer>
|
|
</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"
|
|
multi="True"
|
|
target="new"
|
|
key2="client_action_multi"
|
|
id="base.action_partner_mass_mail"
|
|
context="{'default_composition_mode': 'mass_mail'}"/>
|
|
</data>
|
|
</openerp>
|