summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/wizard/create_template_view.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2014-03-27 14:08:27 +0100
committerThibault Delavallée <tde@openerp.com>2014-03-27 14:08:27 +0100
commitdae3551132a30f4c59ecbd2abced1041be10eeb4 (patch)
tree83f5ccb1f4faae2239a792e9062673bf73ff5d8e /addons/mass_mailing/wizard/create_template_view.xml
parentdc7398fdd37e6cfcd7fb7b4f8a19ce6b4807eac9 (diff)
[IMP] mass_mailing: usability improvements
- from mass_mailing, creating or editing a template now goes through a wizard to avoid tweaking too much the email.template view. This allows an easier management of templates and their link with mailings. - moved email.template minimal form view from email_tmeplate to mass_mailing, because it is the sole module to use it. Tweaked it a bit by the way. - removed dead code about actions not used anymore in mass_mailing - empty list help on mail.mass_mailing.list - various small usability fixes bzr revid: tde@openerp.com-20140327130827-h9dy2m6mq10gzg1s
Diffstat (limited to 'addons/mass_mailing/wizard/create_template_view.xml')
-rw-r--r--addons/mass_mailing/wizard/create_template_view.xml49
1 files changed, 49 insertions, 0 deletions
diff --git a/addons/mass_mailing/wizard/create_template_view.xml b/addons/mass_mailing/wizard/create_template_view.xml
new file mode 100644
index 00000000000..e240017e572
--- /dev/null
+++ b/addons/mass_mailing/wizard/create_template_view.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<openerp>
+ <data>
+
+ <record model="ir.ui.view" id="view_mailing_email_template_form">
+ <field name="name">mailing.email.template.wizard.form</field>
+ <field name="model">mailing.email.template.wizard</field>
+ <field name="arch" type="xml">
+ <form string="Mass Mailing Template" version="7.0">
+ <group>
+ <group>
+ <field name="name"/>
+ <field name="mass_mailing_id" readonly="1"/>
+ <field name="template_id" invisible="1"
+ on_change="on_change_template_id(template_id, context)"/>
+ </group>
+ <group>
+ <div class="oe_right oe_button_box" name="buttons">
+ <button name="%(email_template.wizard_email_template_preview)d" string="Preview"
+ type="action" target="new"
+ context="{'template_id':active_id}"/>
+ </div>
+ </group>
+ </group>
+ <notebook>
+ <page string="Body">
+ <field name="body" nolabel="1"/>
+ <field name="attachment_ids" widget="many2many_binary"/>
+ </page>
+ </notebook>
+ <footer>
+ <button string="Create" name="create_template" type="object" class="oe_highlight"/>
+ or
+ <button string="Cancel" class="oe_link" special="cancel" />
+ </footer>
+ </form>
+ </field>
+ </record>
+
+ <record id="action_mailing_email_template" model="ir.actions.act_window">
+ <field name="name">Mass Mailing Template</field>
+ <field name="res_model">mailing.email.template.wizard</field>
+ <field name="view_type">form</field>
+ <field name="view_mode">form</field>
+ <field name="target">new</field>
+ </record>
+
+ </data>
+</openerp>