Mail Template Language Specific Attachments

mail_template_attachment_i18n
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/16.0/mail_template_attachment_i18n
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Onestein
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Onestein
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, LauraCForgeFlow
WEBSITE
WEBSITEhttps://github.com/OCA/server-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:53
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
mail_template_form mail.template.form mail.template xpath Inherits mail.email_template_form
Models touched (2)

New fields (3)
  • attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment' ondelete='cascade' required=True string='Attachment'
  • lang Selection
    required=True selection=<expr> string='Language'
  • mail_template_id Many2one → mail.template
    comodel_name='mail.template' ondelete='cascade' required=True string='Template'
Public methods (0)

No public methods.

New fields (2)
  • ir_attachment_language_ids One2many → ir.attachment.language
    comodel_name='ir.attachment.language' inverse_name='mail_template_id' string='Language Dependent Attachments'
  • ir_attachment_language_method Selection
    default='partner_lang' selection=[('partner_lang', 'Partner Language'), ('template_lang', 'Template Language')] string='Language Attachment Method'
Public methods (1)
  • generate_email(self, res_ids, fields=None)
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/11.0/mail_template_attachment_i18n
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Onestein
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Onestein
COMMITTERS
COMMITTERSPedro M. Baeza, oca-travis, OCA-git-bot, Tom Blauwendraat
WEBSITE
WEBSITEhttps://github.com/OCA/server-tools
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:24:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
mail_template_form mail.template.form mail.template xpath Inherits mail.email_template_form
Models touched (2)

New fields (3)
  • attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment' ondelete='cascade' required=True string='Attachment'
  • lang Selection
    required=True selection=<expr> string='Language'
  • mail_template_id Many2one → mail.template
    comodel_name='mail.template' ondelete='cascade' required=True string='Template'
Public methods (0)

No public methods.

New fields (1)
  • ir_attachment_language_ids One2many → ir.attachment.language
    comodel_name='ir.attachment.language' inverse_name='mail_template_id' string='Language Dependent Attachments'
Public methods (1)
  • generate_email(self, res_ids, fields=None)
    @api.multi