Email Templates

email_template
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/8.0/email_template
VERSION
VERSION 1.1
CATEGORY
CATEGORYMarketing
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORSOpenERP SA
MAINTAINERS
MAINTAINERSOpenERP SA
COMMITTERS
COMMITTERSRaphael Collet, Odoo Translation Bot, Turkesh Patel (Open ERP), Christophe Matthieu, ajay javiya (OpenERP), Martin Trigaux, Fabien Pinckaers, Antony Lesuisse, Olivier Dony, Thibault Delavallée, Vo Minh Thu, Launchpad Translations on behalf of openerp, Quentin (OpenERP), Denis Ledoux, Fabien Meghazi, Christophe Simonis, Xavier Morel, Goffin Simon, Simon Lejeune, Frédéric van der Essen, Nicolas Lempereur, Richard Mathot, jke-openerp, Aaron Bohy, Thibault Delavallee, openerp-sle, Jeremy Kersten, Gery Debongnie, Randhir Mayatra rma-openerp, Pooja Zankhariya (OpenERP)
WEBSITE
WEBSITEhttps://www.odoo.com/page/mailing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-05 23:45:40
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - mail
    - base
    - base_setup
    - web_kanban
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Email Templating (simplified version of the original Power Email by Openlabs).
==============================================================================

Lets you design complete email templates related to any OpenERP document (Sale
Orders, Invoices and so on), including sender, recipient, subject, body (HTML and
Text). You may also automatically attach files to your templates, or print and
attach a report.

For advanced use, the templates may include dynamic attributes of the document
they are related to. For example, you may use the name of a Partner's country
when writing to them, also providing a safe default in case the attribute is
not defined. Each template contains a built-in assistant to help with the
inclusion of these dynamic values.

If you enable the option, a composition assistant will also appear in the sidebar
of the OpenERP documents to which the template applies (e.g. Invoices).
This serves as a quick way to send a new email based on the template, after
reviewing and adapting the contents, if needed.
This composition assistant will also turn into a mass mailing system when called
for multiple documents at once.

These email templates are also at the heart of the marketing campaign system
(see the ``marketing_campaign`` application), if you need to automate larger
campaigns on any OpenERP document.

    **Technical note:** only the templating system of the original Power Email by Openlabs was kept.
    

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
email_compose_message_wizard_inherit_form mail.compose.message.form mail.compose.message xpath Inherits mail.email_compose_message_wizard_form
email_template_form email.template.form email.template form New
email_template_preview_form email_template.preview.form email_template.preview form New
email_template_tree email.template.tree email.template tree New
res_partner_opt_out_form res.partner.opt_out.form res.partner xpath Inherits base.view_partner_form
res_partner_opt_out_search res.partner.opt_out.search res.partner filter Inherits base.view_res_partner_filter
view_email_template_search email.template.search email.template search New
view_server_action_form_template ir.actions.server.form ir.actions.server xpath Inherits base.view_server_action_form
Models touched (2)

New fields (0)

No new fields.

Public methods (2)
  • on_change_template_id(self, cr, uid, ids, template_id, context=None)
    Render the raw template in the server action fields.
  • run_action_email(self, cr, uid, action, eval_context=None, context=None)

New fields (0)

No new fields.

Public methods (8)
  • default_get(self, cr, uid, fields, context=None)
    Override to pre-fill the data when having a template in single-email mode and not going through the view: the on_change is not called in that case.
  • generate_email_for_composer(self, cr, uid, template_id, res_id, context=None)
  • generate_email_for_composer_batch(self, cr, uid, template_id, res_ids, context=None, fields=None)
    Call email_template.generate_email(), get fields relevant for mail.compose.message, transform email_cc and email_to into partner_ids
  • onchange_template_id(self, cr, uid, ids, template_id, composition_mode, model, res_id, context=None)
    - mass_mailing: we cannot render, so return the template values - normal mode: return rendered values
  • render_message_batch(self, cr, uid, wizard, res_ids, context=None)
    Override to handle templates.
  • render_template_batch(self, cr, uid, template, model, res_ids, context=None, post_process=False)
  • save_as_template(self, cr, uid, ids, context=None)
    hit save as template button: current form value will be a new template attached to the current document.
  • send_mail(self, cr, uid, ids, context=None)
    Override of send_mail to duplicate attachments linked to the email.template. Indeed, basic mail.compose.message wizard duplicates attachments in mass mailing mode. But in 'single post' mode, attachments of an email template also have to be duplicated to avoid changing their ownership.
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/7.0/email_template
VERSION
VERSION 1.1
CATEGORY
CATEGORYMarketing
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORSOpenERP, OpenLabs
MAINTAINERS
MAINTAINERSOpenERP, OpenLabs
COMMITTERS
COMMITTERSRaphael Collet, Twinkle Christian (OpenERP), Cecile Tonglet, Atul Patel (OpenERP), Jalpesh Patel (OpenERP), Stephane Wirtel, Odoo Translation Bot, Turkesh Patel (Open ERP), Numerigraphe - Lionel Sausin, Christophe Matthieu, Antonin Bourguignon, ajay javiya (OpenERP), Martin Trigaux, Ajay Chauhan (OpenERP), Purnendu Singh (OpenERP), Fabien Pinckaers, Antony Lesuisse, Olivier Dony, Divyesh Makwana (Open ERP), Thibault Delavallée, Vo Minh Thu, Hardik, pso (OpenERP), Sbh (Openerp), Amit Patel (OpenERP), Launchpad Translations on behalf of openerp, vta vta@openerp.com, Quentin (OpenERP), Kuldeep Joshi (OpenERP), Denis Ledoux, Mayur Maheshwari (OpenERP), Jigar Amin - OpenERP, Sanjay Gohel (Open ERP), niv-openerp, Christophe Simonis, Amit (OpenERP), chirag patel, Thibault Delavallee
WEBSITE
WEBSITEhttp://openerp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-05 23:43:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - mail
    - base
    - base_setup
    - web_kanban
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Email Templating (simplified version of the original Power Email by Openlabs).
==============================================================================

Lets you design complete email templates related to any OpenERP document (Sale
Orders, Invoices and so on), including sender, recipient, subject, body (HTML and
Text). You may also automatically attach files to your templates, or print and
attach a report.

For advanced use, the templates may include dynamic attributes of the document
they are related to. For example, you may use the name of a Partner's country
when writing to them, also providing a safe default in case the attribute is
not defined. Each template contains a built-in assistant to help with the
inclusion of these dynamic values.

If you enable the option, a composition assistant will also appear in the sidebar
of the OpenERP documents to which the template applies (e.g. Invoices).
This serves as a quick way to send a new email based on the template, after
reviewing and adapting the contents, if needed.
This composition assistant will also turn into a mass mailing system when called
for multiple documents at once.

These email templates are also at the heart of the marketing campaign system
(see the ``marketing_campaign`` application), if you need to automate larger
campaigns on any OpenERP document.

    **Technical note:** only the templating system of the original Power Email by Openlabs was kept.
    

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
email_compose_message_wizard_inherit_form mail.compose.message.form mail.compose.message xpath Inherits mail.email_compose_message_wizard_form
email_template_form email.template.form email.template form New
email_template_preview_form email_template.preview.form email_template.preview form New
email_template_tree email.template.tree email.template tree New
res_partner_opt_out_form res.partner.opt_out.form res.partner xpath Inherits base.view_partner_form
res_partner_opt_out_search res.partner.opt_out.search res.partner filter Inherits base.view_res_partner_filter
view_email_template_search email.template.search email.template search New
Models touched (1)

New fields (0)

No new fields.

Public methods (6)
  • generate_email_for_composer(self, cr, uid, template_id, res_id, context=None)
    Call email_template.generate_email(), get fields relevant for mail.compose.message, transform email_cc and email_to into partner_ids
  • onchange_template_id(self, cr, uid, ids, template_id, composition_mode, model, res_id, context=None)
    - mass_mailing: we cannot render, so return the template values - normal mode: return rendered values
  • render_message(self, cr, uid, wizard, res_id, context=None)
    Override to handle templates.
  • render_template(self, cr, uid, template, model, res_id, context=None)
  • save_as_template(self, cr, uid, ids, context=None)
    hit save as template button: current form value will be a new template attached to the current document.
  • send_mail(self, cr, uid, ids, context=None)
    Override of send_mail to duplicate attachments linked to the email.template. Indeed, basic mail.compose.message wizard duplicates attachments in mass mailing mode. But in 'single post' mode, attachments of an email template also have to be duplicated to avoid changing their ownership.
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/6.1/email_template
VERSION
VERSION 1.1
CATEGORY
CATEGORYMarketing
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOpenERP, OpenLabs
MAINTAINERS
MAINTAINERSOpenERP, OpenLabs
COMMITTERS
COMMITTERSRaphael Collet, Rucha (Open ERP), Stephane Wirtel, Numerigraphe - Lionel Sausin, Harry (OpenERP), Fabien Pinckaers, Antony Lesuisse, Olivier Dony, Vo Minh Thu, Launchpad Translations on behalf of openerp, Quentin (OpenERP), Kuldeep Joshi (OpenERP), vro, niv-openerp, Xavier ALT, Christophe Simonis, Xavier Morel, Najlaâ, Thibault Francois, Carlos Vásquez, Els Van Vossel, Israel Fermin Montilla, Rifakat Haradwala (Open ERP), Hardik Ansodariy (OpenERP), Yogesh (OpenERP), tfr@openerp.com, fp, RME (OpenERP), YSA (Openerp), Somesh Khare
WEBSITE
WEBSITEhttp://openerp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-05 23:41:35
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - mail
    - base
    - base_tools
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Email Templating (simplified version of the original Power Email by Openlabs)
=============================================================================

Lets you design complete email templates related to any OpenERP document (Sale
Orders, Invoices and so on), including sender, recipient, subject, body (HTML and
Text). You may also automatically attach files to your templates, or print and
attach a report.

For advanced use, the templates may include dynamic attributes of the document
they are related to. For example, you may use the name of a Partner's country
when writing to them, also providing a safe default in case the attribute is
not defined. Each template contains a built-in assistant to help with the
inclusion of these dynamic values.

If you enable the option, a composition assistant will also appear in the sidebar
of the OpenERP documents to which the template applies (e.g. Invoices).
This serves as a quick way to send a new email based on the template, after
reviewing and adapting the contents, if needed.
This composition assistant will also turn into a mass mailing system when called
for multiple documents at once.

These email templates are also at the heart of the marketing campaign system
(see the ``marketing_campaign`` application), if you need to automate larger
campaigns on any OpenERP document.

Technical note: only the templating system of the original Power Email by
Openlabs was kept

    

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
email_compose_message_wizard_inherit_form mail.compose.message.form mail.compose.message data Inherits mail.email_compose_message_wizard_form
email_template_form email.template.form email.template form New
email_template_preview_form email_template.preview.form email_template.preview form New
email_template_tree email.template.tree email.template tree New
res_partner_opt_out_form res.partner.opt_out.form res.partner xpath Inherits base.view_partner_form
view_email_template_search email.template.search email.template search New
Models touched (0)

No models found for this module.