[FIX] mass_mailing: remove mail template menu

Mass Mailing campain cannot use Mail Templates anymore (the user now
has to duplicate a previous Mass Mailing if he wants to start a new
one with a mail body which looks like the old one).

So this menu became useless and confused the users. Mail Templates are
a technical feature which is used by other module to send automatic
emails and these can be edited through debug mode in the Settings app.

Resolve #14148.
This commit is contained in:
qsm-odoo
2016-11-22 10:32:51 +01:00
parent be00718645
commit dff12736db
2 changed files with 0 additions and 99 deletions
-1
View File
@@ -31,7 +31,6 @@ professional emails and reuse templates in a few clicks.
'views/mass_mailing_template.xml',
'views/mass_mailing_views.xml',
'views/res_config_views.xml',
'views/email_template.xml',
'security/ir.model.access.csv',
'views/editor_field_html.xml',
'views/themes_templates.xml',
@@ -1,98 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Email Templates -->
<record model="ir.ui.view" id="email_template_form_minimal">
<field name="name">email.template.form.minimal</field>
<field name="model">mail.template</field>
<field name="priority">32</field>
<field name="arch" type="xml">
<form string="Templates">
<sheet>
<div class="oe_button_box" name="button_box">
<button name="%(mail.wizard_email_template_preview)d" string="Preview"
type="action" target="new"
context="{'template_id':active_id}"/>
<br />
</div>
<group>
<group>
<field name="name" required="True"/>
<field name="model_id" required="1" options="{'no_open': True, 'no_create': True}"
domain="[('model', 'in', ['res.partner', 'mail.mass_mailing.contact', 'crm.lead', 'hr.applicant'])]"/>
<field name="model" invisible="True"/>
<field name="use_default_to" invisible="1"/>
</group>
</group>
<notebook>
<page string="Body">
<field name="body_html" nolabel="1" widget="html_frame" options="{'editor_url': '/mass_mailing/field/email_template'}"/>
<field name="attachment_ids" widget="many2many_binary"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_email_template_kanban">
<field name="name">email.template.kanban</field>
<field name="model">mail.template</field>
<field name="arch" type="xml">
<kanban>
<field name="body_html"/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_card oe_kanban_global_click oe_kanban_email_template">
<div t-if="widget.editable or widget.deletable" class="o_dropdown_kanban dropdown">
<a class="dropdown-toggle btn" data-toggle="dropdown" href="#" >
<span class="fa fa-bars fa-lg"/>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
<t t-if="widget.editable">
<li><a type="edit">Edit</a></li>
</t>
<t t-if="widget.deletable">
<li><a type="delete">Delete</a></li>
</t>
</ul>
</div>
<div class="oe_kanban_content">
<h3>
<field name="name"/>
</h3>
<div class="kanban_html_preview">
<t t-raw="record.body_html.raw_value"/>
</div>
</div>
<div class="oe_clear"></div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<record model="ir.actions.act_window" id="action_email_template_marketing">
<field name="name">Templates</field>
<field name="res_model">mail.template</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form</field>
<field name="context">{
'form_view_ref': 'mass_mailing.email_template_form_minimal',
'default_use_default_to': True,
}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click here to create a new template.
</p> <p>
Mail templates are meant to design e-mails that can be used for several mass mailing campaigns.
</p>
</field>
</record>
<!-- Add Templates in Marketing / Mass mailing menu -->
<menuitem name="Mail Templates" id="menu_email_template"
parent="menu_mass_mailing_configuration" sequence="3"
action="action_email_template_marketing" groups="mass_mailing.group_mass_mailing_user"/>
</odoo>