2013-08-07 13:03:34 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
2014-03-14 16:51:13 +00:00
|
|
|
<!-- Marketing / Mass Mailing -->
|
|
|
|
<menuitem name="Mass Mailing" id="mass_mailing_campaign"
|
|
|
|
parent="base.marketing_menu" sequence="1"/>
|
|
|
|
<!-- Marketing / Mailing Lists -->
|
2014-03-28 13:59:07 +00:00
|
|
|
<menuitem name="Contact Lists" id="mass_mailing_list"
|
2014-03-14 16:51:13 +00:00
|
|
|
parent="base.marketing_menu" sequence="2"/>
|
|
|
|
|
|
|
|
<!-- MASS MAILING CONTACT !-->
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_contact_search">
|
|
|
|
<field name="name">mail.mass_mailing.contact.search</field>
|
|
|
|
<field name="model">mail.mass_mailing.contact</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Mass Mailings">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="email"/>
|
|
|
|
<field name="list_id"/>
|
|
|
|
<separator/>
|
|
|
|
<filter string="Available for Mass Mailing" name="not_opt_out" domain="[('opt_out', '=', False)]"
|
|
|
|
help="Contact is not opt-out"/>
|
|
|
|
<group expand="0" string="Group By...">
|
|
|
|
<filter string="Mailing Lists" name="group_list_id"
|
|
|
|
context="{'group_by': 'list_id'}"/>
|
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_contact_tree">
|
|
|
|
<field name="name">mail.mass_mailing.contact.tree</field>
|
|
|
|
<field name="model">mail.mass_mailing.contact</field>
|
|
|
|
<field name="priority">10</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Mass Mailings">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="email"/>
|
|
|
|
<field name="list_id"/>
|
|
|
|
<field name="opt_out"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_contact_form">
|
|
|
|
<field name="name">mail.mass_mailing.contact.form</field>
|
|
|
|
<field name="model">mail.mass_mailing.contact</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Mass Mailing" version="7.0">
|
|
|
|
<sheet>
|
|
|
|
<group>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="email"/>
|
|
|
|
<field name="list_id"/>
|
|
|
|
<field name="opt_out"/>
|
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_view_mass_mailing_contacts" model="ir.actions.act_window">
|
|
|
|
<field name="name">Mass Mailing Contacts</field>
|
|
|
|
<field name="res_model">mail.mass_mailing.contact</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="context">{'search_default_not_opt_out': 1}</field>
|
|
|
|
</record>
|
|
|
|
|
2014-03-27 15:46:06 +00:00
|
|
|
<menuitem name="Contacts" id="menu_email_mass_mailing_contacts" groups="base.group_no_one"
|
2014-03-14 16:51:13 +00:00
|
|
|
parent="mass_mailing_list" sequence="50"
|
|
|
|
action="action_view_mass_mailing_contacts"/>
|
|
|
|
|
2014-03-27 15:46:06 +00:00
|
|
|
<!-- Create a Mailing List from Contacts -->
|
2014-03-18 16:41:17 +00:00
|
|
|
<act_window name="Create Mailing List"
|
|
|
|
res_model="mail.mass_mailing.list"
|
|
|
|
src_model="mail.mass_mailing.contact"
|
|
|
|
view_mode="form"
|
|
|
|
multi="True"
|
|
|
|
target="current"
|
|
|
|
key2="client_action_multi"
|
|
|
|
id="action_contact_to_mailing_list"
|
2014-03-27 15:46:06 +00:00
|
|
|
context="{
|
|
|
|
'default_mass_mailing_id': context.get('default_mass_mailing_id'),
|
|
|
|
'default_model': context.get('default_model', 'mail.mass_mailing.contact'),
|
|
|
|
'default_name': context.get('default_name', False)}"/>
|
2014-03-18 16:41:17 +00:00
|
|
|
|
2014-03-14 16:51:13 +00:00
|
|
|
<!-- MASS MAILING LIST !-->
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_list_search">
|
|
|
|
<field name="name">mail.mass_mailing.list.search</field>
|
|
|
|
<field name="model">mail.mass_mailing.list</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Mass Mailings">
|
|
|
|
<field name="name"/>
|
|
|
|
<separator/>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_list_tree">
|
|
|
|
<field name="name">mail.mass_mailing.list.tree</field>
|
|
|
|
<field name="model">mail.mass_mailing.list</field>
|
|
|
|
<field name="priority">10</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Contact Lists">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="model"/>
|
|
|
|
<field name="contact_nbr"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_list_form">
|
|
|
|
<field name="name">mail.mass_mailing.list.form</field>
|
|
|
|
<field name="model">mail.mass_mailing.list</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Contact List" version="7.0">
|
|
|
|
<header>
|
2014-03-18 13:04:28 +00:00
|
|
|
<button name="action_add_to_mailing" type="object"
|
2014-03-27 15:46:06 +00:00
|
|
|
class="oe_highlight" string="Continue to Mailing"
|
2014-03-18 13:04:28 +00:00
|
|
|
invisible="not context.get('default_mass_mailing_id')"/>
|
2014-03-14 16:51:13 +00:00
|
|
|
</header>
|
|
|
|
<sheet>
|
|
|
|
<group>
|
2014-03-27 15:46:06 +00:00
|
|
|
<field name="name" string="Mailing List Name"/>
|
2014-03-14 16:51:13 +00:00
|
|
|
<label for="contact_nbr"/>
|
|
|
|
<div>
|
2014-03-18 13:04:28 +00:00
|
|
|
<field name="contact_nbr" nolabel="1" class="oe_inline"/>
|
2014-03-27 15:46:06 +00:00
|
|
|
<field name="model" class="oe_inline"
|
|
|
|
on_change="on_change_model(model, context)" nolabel="1"/>
|
|
|
|
<button string="See Recipients" class="oe_inline oe_link" style="margin-left: 8px;"
|
|
|
|
name="action_see_records" type="object"/>
|
2014-03-14 16:51:13 +00:00
|
|
|
</div>
|
2014-03-27 15:46:06 +00:00
|
|
|
<field name="filter_id" groups="base.group_no_one"
|
|
|
|
on_change="on_change_filter_id(filter_id, context)"/>
|
|
|
|
<field name="domain" groups="base.group_no_one"
|
|
|
|
on_change="on_change_domain(domain, model, context)"/>
|
2014-03-14 16:51:13 +00:00
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_view_mass_mailing_lists" model="ir.actions.act_window">
|
|
|
|
<field name="name">Contact Lists</field>
|
|
|
|
<field name="res_model">mail.mass_mailing.list</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2014-03-27 13:08:27 +00:00
|
|
|
<field name="help" type="html">
|
|
|
|
<p class="oe_view_nocontent_create">
|
|
|
|
Click here to create a new mailing list.
|
|
|
|
</p><p>
|
|
|
|
Mailing lists allows you to to manage customers and contacts easily and to send to mailings in a single click.
|
|
|
|
</p></field>
|
2014-03-14 16:51:13 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem name="Contact Lists" id="menu_email_mass_mailing_lists"
|
|
|
|
parent="mass_mailing_list" sequence="40"
|
|
|
|
action="action_view_mass_mailing_lists"/>
|
|
|
|
|
2013-09-16 10:10:35 +00:00
|
|
|
<!-- MASS MAILING !-->
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_search">
|
|
|
|
<field name="name">mail.mass_mailing.search</field>
|
|
|
|
<field name="model">mail.mass_mailing</field>
|
2013-08-07 13:03:34 +00:00
|
|
|
<field name="arch" type="xml">
|
2013-09-16 10:10:35 +00:00
|
|
|
<search string="Mass Mailings">
|
|
|
|
<field name="name" string="Mailings"/>
|
|
|
|
<field name="mass_mailing_campaign_id"/>
|
|
|
|
<field name="template_id"/>
|
|
|
|
<group expand="0" string="Group By...">
|
|
|
|
<filter string="Campaign" name="group_mass_mailing_campaign_id"
|
2014-03-14 16:51:13 +00:00
|
|
|
groups="mass_mailing.group_mass_mailing_campaign"
|
2013-09-16 10:10:35 +00:00
|
|
|
context="{'group_by': 'mass_mailing_campaign_id'}"/>
|
|
|
|
<filter string="Template" name="group_template_id"
|
|
|
|
context="{'group_by': 'template_id'}"/>
|
|
|
|
</group>
|
|
|
|
</search>
|
2013-08-07 13:03:34 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2013-09-13 11:54:08 +00:00
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_tree">
|
|
|
|
<field name="name">mail.mass_mailing.tree</field>
|
|
|
|
<field name="model">mail.mass_mailing</field>
|
2013-09-03 14:59:36 +00:00
|
|
|
<field name="priority">10</field>
|
|
|
|
<field name="arch" type="xml">
|
2013-09-13 11:54:08 +00:00
|
|
|
<tree string="Mass Mailings">
|
2013-09-03 14:59:36 +00:00
|
|
|
<field name="name"/>
|
2013-09-12 10:09:09 +00:00
|
|
|
<field name="sent"/>
|
|
|
|
<field name="delivered"/>
|
|
|
|
<field name="opened"/>
|
|
|
|
<field name="replied"/>
|
2014-03-14 16:51:13 +00:00
|
|
|
<field name="mass_mailing_campaign_id"
|
|
|
|
groups="mass_mailing.group_mass_mailing_campaign"/>
|
2013-09-16 10:10:35 +00:00
|
|
|
<field name="template_id" invisible="1"/>
|
2013-09-03 14:59:36 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2013-09-13 11:54:08 +00:00
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_form">
|
|
|
|
<field name="name">mail.mass_mailing.form</field>
|
|
|
|
<field name="model">mail.mass_mailing</field>
|
2013-09-03 14:59:36 +00:00
|
|
|
<field name="arch" type="xml">
|
2013-09-13 11:54:08 +00:00
|
|
|
<form string="Mass Mailing" version="7.0">
|
2014-03-14 16:51:13 +00:00
|
|
|
<header>
|
|
|
|
<button name="send_mail" type="object"
|
|
|
|
class="oe_highlight" string="Send to All"/>
|
|
|
|
<field name="state" widget="statusbar" clickable="True"/>
|
|
|
|
</header>
|
2013-09-03 14:59:36 +00:00
|
|
|
<sheet>
|
2014-03-28 13:59:07 +00:00
|
|
|
<div colspan="2" class="oe_form_box_info oe_text_center"
|
|
|
|
attrs="{'invisible': [('scheduled', '=', 0)]}">
|
|
|
|
<p>
|
|
|
|
<strong><field name="scheduled" class="oe_inline"/>emails are in queue
|
|
|
|
and will be sent soon.</strong>
|
|
|
|
</p>
|
|
|
|
</div>
|
2013-09-03 14:59:36 +00:00
|
|
|
<group>
|
2013-09-03 15:25:53 +00:00
|
|
|
<group>
|
|
|
|
<field name="name"/>
|
2014-03-27 10:38:52 +00:00
|
|
|
<field name="date" readonly="True" groups="mass_mailing.group_mass_mailing_campaign"/>
|
2014-03-14 16:51:13 +00:00
|
|
|
<field name="mass_mailing_campaign_id" groups="mass_mailing.group_mass_mailing_campaign"/>
|
|
|
|
<label for="template_id"/>
|
|
|
|
<div style="max-height: 200px; overflow: hidden !important;">
|
|
|
|
<field name="template_id" string="Select Template" nolabel="1"
|
2014-03-24 17:10:17 +00:00
|
|
|
options="{'no_create': True, 'no_open': True}"
|
2014-03-14 16:51:13 +00:00
|
|
|
on_change="on_change_template_id(template_id, context)"/>
|
2014-03-24 17:10:17 +00:00
|
|
|
<button string='Create a New Template' class='oe_inline oe_link oe_edit_only'
|
2014-03-27 13:08:27 +00:00
|
|
|
type='action' name='%(action_mailing_email_template)d'
|
|
|
|
attrs="{'invisible': [('template_id', '!=', False)]}"
|
|
|
|
context="{'default_mass_mailing_id': active_id}"/>
|
2014-03-28 13:59:07 +00:00
|
|
|
<div style="max-width: 300px !important;">
|
|
|
|
<field name="body_html" class="form_html_preview" nolabel="1"
|
|
|
|
attrs="{'invisible': [('template_id', '=', False)]}"/>
|
2014-03-27 13:08:27 +00:00
|
|
|
<button string='Edit this Email' class='oe_inline oe_link oe_edit_only'
|
|
|
|
type='action' name='%(action_mailing_email_template)d'
|
|
|
|
attrs="{'invisible': [('template_id', '=', False)]}"
|
|
|
|
context="{'default_mass_mailing_id': active_id, 'default_template_id': template_id}"/>
|
2014-03-24 17:10:17 +00:00
|
|
|
</div>
|
2014-03-14 16:51:13 +00:00
|
|
|
</div>
|
|
|
|
<field name="email_from"/>
|
|
|
|
<field name="reply_to"/>
|
2013-09-03 15:25:53 +00:00
|
|
|
</group>
|
|
|
|
<group>
|
2014-04-01 13:53:52 +00:00
|
|
|
<!-- <p colspan="2">Here be some pie charts</p> -->
|
2014-03-28 13:59:07 +00:00
|
|
|
<field name="total"/>
|
|
|
|
<field name="received_ratio" attrs="{'invisible': [('total', '=', 0)]}"/>
|
|
|
|
<field name="opened_ratio" attrs="{'invisible': [('total', '=', 0)]}"/>
|
|
|
|
<field name="replied_ratio" attrs="{'invisible': [('total', '=', 0)]}"/>
|
2014-04-01 13:53:52 +00:00
|
|
|
<!-- <p colspan="2">Here be some bar charts</p> -->
|
|
|
|
<!-- <field name="opened_dayly" attrs="{'invisible': [('total', '=', 0)]}"/>
|
|
|
|
<field name="replied_dayly" attrs="{'invisible': [('total', '=', 0)]}"/> -->
|
2013-09-13 14:00:43 +00:00
|
|
|
</group>
|
|
|
|
</group>
|
2014-03-14 16:51:13 +00:00
|
|
|
<group>
|
2014-03-27 13:08:27 +00:00
|
|
|
<label for="test_email_to"/>
|
|
|
|
<div>
|
|
|
|
<field name="test_email_to" nolabel="1" clcass="oe_inline"/>
|
|
|
|
<span class="oe_grey">Comma-separated email addresses for testing purpose.</span>
|
|
|
|
<button string='Test Mailing' class='oe_inline oe_link' style='margin-left: 8px;'
|
|
|
|
type='object' name='send_mail_test'/>
|
|
|
|
</div>
|
2014-03-14 16:51:13 +00:00
|
|
|
<label for="contact_list_ids" string="Recipients"/>
|
|
|
|
<div>
|
|
|
|
<group>
|
2014-03-27 15:46:06 +00:00
|
|
|
<field name="mailing_model" string="Perform Mailing on" class="oe_inline" widget="radio"
|
|
|
|
on_change='on_change_mailing_model(mailing_model, context)'/>
|
2014-03-14 16:51:13 +00:00
|
|
|
<label for="contact_list_ids" string="Selected Lists"/>
|
|
|
|
<div>
|
2014-03-20 17:04:55 +00:00
|
|
|
<field name="contact_list_ids" widget="many2many_tags" nolabel="1" options="{'no_create': True}"/>
|
2014-03-18 13:04:28 +00:00
|
|
|
<button string='Create a New List' class="oe_inline oe_link" type='object' name='action_new_list'/>
|
2014-03-14 16:51:13 +00:00
|
|
|
</div>
|
2014-03-27 15:46:06 +00:00
|
|
|
<label for="contact_nbr" string="Contacts"/>
|
|
|
|
<div>
|
|
|
|
<field name="contact_nbr" nolabel="1" class="oe_inline" readonly="True"/> contacts selected
|
|
|
|
<button name="action_see_recipients" type="object" string="See Recipients" class="oe_link" style='margin-left: 8px;'/>
|
|
|
|
</div>
|
2014-04-01 13:24:54 +00:00
|
|
|
<label for="contact_ab_pc" string="AB Testing"
|
|
|
|
groups="mass_mailing.group_mass_mailing_campaign"/>
|
|
|
|
<div groups="mass_mailing.group_mass_mailing_campaign">
|
|
|
|
<field name="ab_testing" invisible="1"/>
|
|
|
|
<field name="contact_ab_pc" class="oe_inline"/>%, <field name="contact_ab_nbr" class="oe_inline"/> contacts to mail<br />
|
|
|
|
<field name="contact_ab_done" class="oe_inline"
|
|
|
|
attrs="{'invisible': [('ab_testing', '=', False)]}"/> already mailed
|
|
|
|
</div>
|
2014-03-14 16:51:13 +00:00
|
|
|
</group>
|
|
|
|
</div>
|
|
|
|
</group>
|
2013-09-03 14:59:36 +00:00
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2013-09-13 11:54:08 +00:00
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_kanban">
|
|
|
|
<field name="name">mail.mass_mailing.kanban</field>
|
|
|
|
<field name="model">mail.mass_mailing</field>
|
2013-09-03 14:59:36 +00:00
|
|
|
<field name="arch" type="xml">
|
2014-03-14 16:51:13 +00:00
|
|
|
<kanban default_group_by='state'>
|
2013-09-10 15:19:01 +00:00
|
|
|
<field name='color'/>
|
2014-03-17 16:09:19 +00:00
|
|
|
<field name='total'/>
|
2013-09-03 14:59:36 +00:00
|
|
|
<templates>
|
|
|
|
<t t-name="kanban-box">
|
2014-03-17 16:09:19 +00:00
|
|
|
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click oe_kanban_mass_mailing">
|
2014-03-20 17:51:02 +00:00
|
|
|
<div class="oe_dropdown_toggle oe_dropdown_kanban">
|
|
|
|
<span class="oe_e">i</span>
|
|
|
|
<ul class="oe_dropdown_menu">
|
|
|
|
<t t-if="widget.view.is_action_enabled('delete')">
|
|
|
|
<li><a type="delete">Delete</a></li>
|
|
|
|
</t>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2013-09-03 14:59:36 +00:00
|
|
|
<div class="oe_kanban_content">
|
|
|
|
<div>
|
2014-03-17 16:09:19 +00:00
|
|
|
<h3><field name="name"/></h3>
|
|
|
|
<h4 style="display: inline;"><field name="mass_mailing_campaign_id" groups="mass_mailing.group_mass_mailing_campaign"/></h4>
|
2014-03-18 16:41:17 +00:00
|
|
|
<t t-if="record.mass_mailing_campaign_id.raw_value" groups="mass_mailing.group_mass_mailing_campaign"> - </t><field name="date"/>
|
2013-09-03 14:59:36 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2014-03-17 16:09:19 +00:00
|
|
|
<field name="total" widget="gauge" style="width:120px; height: 90px;"
|
|
|
|
options="{'max_field': 'total'}"/>
|
|
|
|
<field name="delivered" widget="gauge" style="width:120px; height: 90px;"
|
|
|
|
options="{'max_field': 'total'}"/>
|
2013-09-03 14:59:36 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2014-03-17 16:09:19 +00:00
|
|
|
<field name="opened" widget="gauge" style="width:120px; height: 90px;"
|
|
|
|
options="{'max_field': 'total'}"/>
|
|
|
|
<field name="replied" widget="gauge" style="width:120px; height: 90px;"
|
|
|
|
options="{'max_field': 'total'}"/>
|
2013-09-03 14:59:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="oe_clear"></div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</templates>
|
|
|
|
</kanban>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2013-09-13 11:54:08 +00:00
|
|
|
<record id="action_view_mass_mailings" model="ir.actions.act_window">
|
|
|
|
<field name="name">Mass Mailings</field>
|
|
|
|
<field name="res_model">mail.mass_mailing</field>
|
2013-09-03 14:59:36 +00:00
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">kanban,tree,form</field>
|
2014-03-27 10:38:52 +00:00
|
|
|
<field name="help" type="html">
|
|
|
|
<p class="oe_view_nocontent_create">
|
|
|
|
Click here to create a new mailing.
|
|
|
|
</p><p>
|
|
|
|
Mass mailing allows you to to easily design and send mass mailings to your contacts, customers or leads using mailing lists.
|
|
|
|
</p></field>
|
2013-08-07 13:03:34 +00:00
|
|
|
</record>
|
|
|
|
|
2013-09-16 10:10:35 +00:00
|
|
|
<record id="action_view_mass_mailings_from_campaign" model="ir.actions.act_window">
|
|
|
|
<field name="name">Mass Mailings</field>
|
|
|
|
<field name="res_model">mail.mass_mailing</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">kanban,tree,form</field>
|
|
|
|
<field name="context">{
|
|
|
|
'search_default_mass_mailing_campaign_id': [active_id],
|
|
|
|
'default_mass_mailing_campaign_id': active_id,
|
|
|
|
}
|
|
|
|
</field>
|
2014-03-27 10:38:52 +00:00
|
|
|
<field name="help" type="html">
|
|
|
|
<p class="oe_view_nocontent_create">
|
|
|
|
Click here to create a new mailing.
|
|
|
|
</p><p>
|
|
|
|
Mass mailing allows you to to easily design and send mass mailings to your contacts, customers or leads using mailing lists.
|
|
|
|
</p></field>
|
2013-09-16 10:10:35 +00:00
|
|
|
</record>
|
|
|
|
|
2014-03-14 16:51:13 +00:00
|
|
|
<menuitem name="Mass Mailings" id="menu_email_mass_mailings"
|
|
|
|
parent="mass_mailing_campaign" sequence="2"
|
|
|
|
action="action_view_mass_mailings"/>
|
|
|
|
|
2013-09-16 10:10:35 +00:00
|
|
|
<!-- MASS MAILING CAMPAIGNS !-->
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_campaign_search">
|
|
|
|
<field name="name">mail.mass_mailing.campaign.search</field>
|
|
|
|
<field name="model">mail.mass_mailing.campaign</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Mass Mailing Campaigns">
|
|
|
|
<field name="name" string="Campaigns"/>
|
2014-03-14 16:51:13 +00:00
|
|
|
<field name="category_id"/>
|
2013-09-16 10:10:35 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<group expand="0" string="Group By...">
|
2014-03-14 16:51:13 +00:00
|
|
|
<filter string="Responsible" name="group_user_id"
|
2013-09-16 10:10:35 +00:00
|
|
|
context="{'group_by': 'user_id'}"/>
|
2014-03-14 16:51:13 +00:00
|
|
|
<filter string="Category" name="group_category_id"
|
|
|
|
context="{'group_by': 'category_id'}"/>
|
2013-09-16 10:10:35 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_campaign_tree">
|
|
|
|
<field name="name">mail.mass_mailing.campaign.tree</field>
|
|
|
|
<field name="model">mail.mass_mailing.campaign</field>
|
|
|
|
<field name="priority">10</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Mass Mailing Campaigns">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="user_id"/>
|
2014-03-14 16:51:13 +00:00
|
|
|
<field name="state"/>
|
|
|
|
<field name="category_id"/>
|
2013-09-16 10:10:35 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_campaign_form">
|
|
|
|
<field name="name">mail.mass_mailing.campaign.form</field>
|
|
|
|
<field name="model">mail.mass_mailing.campaign</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Mass Mailing Campaign" version="7.0">
|
|
|
|
<header>
|
2014-03-17 16:09:19 +00:00
|
|
|
<button name="action_new_mailing" type="object" class="oe_highlight" string="New Mailing"/>
|
2014-03-14 16:51:13 +00:00
|
|
|
<field name="state" widget="statusbar" clickable="True"/>
|
2013-09-16 10:10:35 +00:00
|
|
|
</header>
|
|
|
|
<sheet>
|
|
|
|
<group>
|
|
|
|
<group>
|
2014-03-17 16:09:19 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="category_id"/>
|
2014-04-01 13:24:54 +00:00
|
|
|
<field name="ab_testing"/>
|
2013-09-16 10:10:35 +00:00
|
|
|
</group>
|
|
|
|
<group>
|
2014-04-01 13:53:52 +00:00
|
|
|
<!-- <p>Here be some graphs</p> -->
|
|
|
|
<field name="total"/>
|
|
|
|
<field name="sent" attrs="{'invisible': [('total', '=', 0)]}"/>
|
|
|
|
<field name="opened" attrs="{'invisible': [('total', '=', 0)]}"/>
|
|
|
|
<field name="replied" attrs="{'invisible': [('total', '=', 0)]}"/>
|
2013-09-16 10:10:35 +00:00
|
|
|
</group>
|
2014-03-17 16:09:19 +00:00
|
|
|
</group>
|
2013-09-16 10:10:35 +00:00
|
|
|
<group>
|
2014-03-14 16:51:13 +00:00
|
|
|
<field name="mass_mailing_ids" readonly="1" string="Related Mailing(s)">
|
|
|
|
<tree>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="date"/>
|
|
|
|
<field name="state"/>
|
|
|
|
<field name="delivered"/>
|
|
|
|
<field name="opened"/>
|
|
|
|
<field name="replied"/>
|
|
|
|
<field name="bounced"/>
|
2014-03-20 17:50:04 +00:00
|
|
|
<button name="action_duplicate" type="object" string="Duplicate"/>
|
2014-03-14 16:51:13 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
2013-09-16 10:10:35 +00:00
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_mail_mass_mailing_campaign_kanban">
|
|
|
|
<field name="name">mail.mass_mailing.campaign.kanban</field>
|
|
|
|
<field name="model">mail.mass_mailing.campaign</field>
|
|
|
|
<field name="arch" type="xml">
|
2014-03-14 16:51:13 +00:00
|
|
|
<kanban default_group_by='state'>
|
2014-03-17 16:09:19 +00:00
|
|
|
<field name='total'/>
|
2013-09-16 10:10:35 +00:00
|
|
|
<field name='color'/>
|
2014-03-17 16:09:19 +00:00
|
|
|
<field name='user_id'/>
|
|
|
|
<field name='mass_mailing_ids'/>
|
2013-09-16 10:10:35 +00:00
|
|
|
<templates>
|
|
|
|
<t t-name="kanban-box">
|
2014-03-17 16:09:19 +00:00
|
|
|
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click oe_kanban_mass_mailing_campaign">
|
2013-09-16 10:10:35 +00:00
|
|
|
<div class="oe_dropdown_toggle oe_dropdown_kanban">
|
|
|
|
<span class="oe_e">i</span>
|
|
|
|
<ul class="oe_dropdown_menu">
|
2013-09-16 11:47:06 +00:00
|
|
|
<t t-if="widget.view.is_action_enabled('edit')">
|
|
|
|
<li><a type="edit">Settings</a></li>
|
|
|
|
</t>
|
|
|
|
<t t-if="widget.view.is_action_enabled('delete')">
|
|
|
|
<li><a type="delete">Delete</a></li>
|
|
|
|
</t>
|
2013-09-16 10:10:35 +00:00
|
|
|
<li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="oe_kanban_content">
|
|
|
|
<div>
|
2014-03-17 16:09:19 +00:00
|
|
|
<img t-att-src="kanban_image('res.users', 'image_small', record.user_id.raw_value)"
|
|
|
|
t-att-title="record.user_id.value" width="48" height="48o" class="oe_kanban_avatar oe_kanban_header_right"/>
|
2014-03-20 17:04:55 +00:00
|
|
|
<h3 style="margin-bottom: 8px;"><field name="name"/></h3>
|
2014-03-17 16:09:19 +00:00
|
|
|
<span class="oe_tag"><field name="category_id"/></span>
|
|
|
|
<a name="%(action_view_mass_mailings_from_campaign)d" type="action"
|
|
|
|
class="oe_mailings">
|
2014-03-20 17:04:55 +00:00
|
|
|
<h4 style="margin-top: 8px;"><t t-raw="record.mass_mailing_ids.raw_value.length"/> Mailings</h4>
|
2014-03-17 16:09:19 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="oe_clear"></div>
|
|
|
|
<div>
|
|
|
|
<field name="total" widget="gauge" style="width:160px; height: 120px;"
|
|
|
|
options="{'max_field': 'total'}"/>
|
2013-09-16 10:10:35 +00:00
|
|
|
<field name="delivered" widget="gauge" style="width:160px; height: 120px;"
|
2014-03-17 16:09:19 +00:00
|
|
|
options="{'max_field': 'total'}"/>
|
|
|
|
</div>
|
|
|
|
<div>
|
2013-09-16 10:10:35 +00:00
|
|
|
<field name="opened" widget="gauge" style="width:160px; height: 120px;"
|
2014-03-17 16:09:19 +00:00
|
|
|
options="{'max_field': 'total'}"/>
|
2013-09-16 10:10:35 +00:00
|
|
|
<field name="replied" widget="gauge" style="width:160px; height: 120px;"
|
2014-03-17 16:09:19 +00:00
|
|
|
options="{'max_field': 'total'}"/>
|
2013-09-16 10:10:35 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="oe_clear"></div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</templates>
|
|
|
|
</kanban>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_view_mass_mailing_campaigns" model="ir.actions.act_window">
|
|
|
|
<field name="name">Mass Mailing Campaigns</field>
|
|
|
|
<field name="res_model">mail.mass_mailing.campaign</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">kanban,tree,form</field>
|
2013-09-17 08:50:03 +00:00
|
|
|
<field name="help" type="html">
|
|
|
|
<p class="oe_view_nocontent_create">
|
|
|
|
Click to define a new mass mailing campaign.
|
|
|
|
</p><p>
|
|
|
|
Create a campaign to structure mass mailing and get analysis from email status.
|
|
|
|
</p>
|
|
|
|
</field>
|
2013-09-16 10:10:35 +00:00
|
|
|
</record>
|
|
|
|
|
2014-03-14 16:51:13 +00:00
|
|
|
<menuitem name="Campaigns" id="menu_email_campaigns"
|
|
|
|
parent="mass_mailing_campaign" sequence="1"
|
|
|
|
action="action_view_mass_mailing_campaigns"
|
|
|
|
groups="mass_mailing.group_mass_mailing_campaign"/>
|
|
|
|
|
2013-09-13 13:38:41 +00:00
|
|
|
<!-- MAIL MAIL STATISTICS !-->
|
2013-09-16 10:10:35 +00:00
|
|
|
<record model="ir.ui.view" id="view_mail_mail_statistics_search">
|
|
|
|
<field name="name">mail.mail.statistics.search</field>
|
|
|
|
<field name="model">mail.mail.statistics</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Mail Statistics">
|
|
|
|
<field name="mail_mail_id"/>
|
|
|
|
<field name="message_id"/>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2013-09-13 13:38:41 +00:00
|
|
|
<record model="ir.ui.view" id="view_mail_mail_statistics_tree">
|
|
|
|
<field name="name">mail.mail.statistics.tree</field>
|
|
|
|
<field name="model">mail.mail.statistics</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Mail Statistics">
|
|
|
|
<field name="mail_mail_id"/>
|
|
|
|
<field name="message_id"/>
|
2014-03-18 16:41:17 +00:00
|
|
|
<field name="sent"/>
|
2013-09-13 13:38:41 +00:00
|
|
|
<field name="opened"/>
|
|
|
|
<field name="replied"/>
|
2013-09-17 09:42:18 +00:00
|
|
|
<field name="bounced"/>
|
2013-09-13 13:38:41 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_mail_mail_statistics_form">
|
|
|
|
<field name="name">mail.mail.statistics.form</field>
|
|
|
|
<field name="model">mail.mail.statistics</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Mail Statistics" version="7.0">
|
|
|
|
<group>
|
2013-09-17 10:35:55 +00:00
|
|
|
<group>
|
|
|
|
<field name="mail_mail_id"/>
|
|
|
|
<field name="message_id"/>
|
2014-03-18 16:41:17 +00:00
|
|
|
<field name="sent"/>
|
2013-09-17 10:35:55 +00:00
|
|
|
<field name="opened"/>
|
|
|
|
<field name="replied"/>
|
|
|
|
<field name="bounced"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="mass_mailing_id"/>
|
|
|
|
<field name="mass_mailing_campaign_id"/>
|
|
|
|
<field name="template_id"/>
|
|
|
|
<field name="model"/>
|
|
|
|
<field name="res_id"/>
|
|
|
|
</group>
|
2013-09-13 13:38:41 +00:00
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_view_mail_mail_statistics" model="ir.actions.act_window">
|
|
|
|
<field name="name">Mail Statistics</field>
|
|
|
|
<field name="res_model">mail.mail.statistics</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Add in Technical/Email -->
|
|
|
|
<menuitem name="Mail Statistics" id="menu_email_statistics"
|
|
|
|
parent="base.menu_email" sequence="50"
|
|
|
|
action="action_view_mail_mail_statistics"/>
|
|
|
|
|
2014-03-27 15:46:06 +00:00
|
|
|
<!-- MISC -->
|
|
|
|
<!-- Mailing List Create Wizard -->
|
|
|
|
<menuitem name="Create a new List" id="menu_mail_mass_mailing_create"
|
|
|
|
parent="mass_mailing_list" sequence="10"
|
|
|
|
action="action_mail_mass_mailing_create"/>
|
|
|
|
|
2013-08-07 13:03:34 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|