Mail template multi attachment

mail_template_multi_attachment
REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/16.0/mail_template_multi_attachment
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Atchuthan Ubendran, Sodexis Team
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:54
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 (4)
XML IDNameModelTypeStatus
mail_template_form_view mail.template.form (in mail_template_multi_attachment) mail.template field Inherits mail.email_template_form
mail_template_report_form_view mail.template.report.form (in mail_template_multi_attachment) mail.template.report form New
mail_template_report_tree_o2m_view mail.template.report.tree (in mail_template_multi_attachment) mail.template.report tree New
mail_template_report_tree_view mail.template.report.tree (in mail_template_multi_attachment) mail.template.report tree New
Models touched (2)

New fields (1)
  • template_report_ids One2many → mail.template.report
    comodel_name='mail.template.report' inverse_name='mail_template_id'
Public methods (2)
  • generate_attachments(self, results)
  • generate_email(self, res_ids, fields=None)
    Inherit to generate attachments. Inspired from original mail.template,generate_email(...) from Odoo. :param res_ids: int or list of int :param fields: :return: dict

New fields (4)
  • mail_template_id Many2one → mail.template
    comodel_name='mail.template' ondelete='cascade' required=True string='Mail template'
  • model Char
    related='mail_template_id.model' store=True
  • report_name Char
    translate=True
  • report_template_id Many2one → ir.actions.report
    comodel_name='ir.actions.report' ondelete='cascade' required=True string='Report'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/14.0/mail_template_multi_attachment
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Benoit Aimont, PaoloYam
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:08
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 (4)
XML IDNameModelTypeStatus
mail_template_form_view mail.template.form (in mail_template_multi_attachment) mail.template field Inherits mail.email_template_form
mail_template_report_form_view mail.template.report.form (in mail_template_multi_attachment) mail.template.report form New
mail_template_report_tree_o2m_view mail.template.report.tree (in mail_template_multi_attachment) mail.template.report tree New
mail_template_report_tree_view mail.template.report.tree (in mail_template_multi_attachment) mail.template.report tree New
Models touched (2)

New fields (1)
  • template_report_ids One2many → mail.template.report
    comodel_name='mail.template.report' inverse_name='mail_template_id'
Public methods (2)
  • generate_attachments(self, results)
  • generate_email(self, res_ids, fields)
    Inherit to generate attachments. Inspired from original mail.template,generate_email(...) from Odoo. :param res_ids: int or list of int :param fields: :return: dict

New fields (4)
  • mail_template_id Many2one → mail.template
    comodel_name='mail.template' ondelete='cascade' required=True string='Mail template'
  • model Char
    related='mail_template_id.model' store=True
  • report_name Char
    translate=True
  • report_template_id Many2one → ir.actions.report
    comodel_name='ir.actions.report' ondelete='cascade' required=True string='Report'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/social
GIT
GIThttps://github.com/OCA/social.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/social/tree/13.0/mail_template_multi_attachment
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSoca-travis, OCA-git-bot, François Honoré
WEBSITE
WEBSITEhttps://github.com/OCA/social
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:18
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 (4)
XML IDNameModelTypeStatus
mail_template_form_view mail.template.form (in mail_template_multi_attachment) mail.template field Inherits mail.email_template_form
mail_template_report_form_view mail.template.report.form (in mail_template_multi_attachment) mail.template.report form New
mail_template_report_tree_o2m_view mail.template.report.tree (in mail_template_multi_attachment) mail.template.report tree New
mail_template_report_tree_view mail.template.report.tree (in mail_template_multi_attachment) mail.template.report tree New
Models touched (2)

New fields (1)
  • template_report_ids One2many → mail.template.report
    comodel_name='mail.template.report' inverse_name='mail_template_id'
Public methods (1)
  • generate_email(self, res_ids, fields=None)
    Inherit to generate attachments. Inspired from original mail.template,generate_email(...) from Odoo. :param res_ids: int or list of int :param fields: :return: dict

New fields (4)
  • mail_template_id Many2one → mail.template
    comodel_name='mail.template' ondelete='cascade' required=True string='Mail template'
  • model Char
    related='mail_template_id.model' store=True
  • report_name Char
    translate=True
  • report_template_id Many2one → ir.actions.report
    comodel_name='ir.actions.report' ondelete='cascade' required=True string='Report'
Public methods (0)

No public methods.