API Log notification

api_log_mail
REPOSITORY
REPOSITORYOCA/rest-framework
GIT
GIThttps://github.com/OCA/rest-framework.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/rest-framework/tree/18.0/api_log_mail
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), PyTech
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), PyTech
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Florian Mounier
WEBSITE
WEBSITEhttps://github.com/OCA/rest-framework
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/rest-framework:
    - api_log
odoo/odoo:
    - web
    - base
    - mail
    - base_setup
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to create an activity when an exception is logged in an API logs collection.

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (2)
  • log_exception(self, exception)
  • log_request(self, request, override_log_values=None)
    @api.model

New fields (2)
  • api_log_mail_exception_activity_type_id Many2one → mail.activity.type
    comodel_name='mail.activity.type' domain=[('res_model', '=', 'api.log')] help='An activity of this type will be created when an error is logged.' string='Error Activity type'
  • api_log_mail_exception_template_id Many2one → mail.template
    comodel_name='mail.template' domain=[('model_id.model', '=', 'api.log')] help='An email based on this template will be sent when an error is logged.' string='Error E-mail Template'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/rest-framework
GIT
GIThttps://github.com/OCA/rest-framework.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/rest-framework/tree/17.0/api_log_mail
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), PyTech
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), PyTech
COMMITTERS
COMMITTERSOCA-git-bot, Simone Rubino, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/rest-framework
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:19:58
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/rest-framework:
    - api_log
odoo/odoo:
    - web
    - base
    - mail
    - base_setup
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to create an activity when an exception is logged in an API logs collection.

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (2)
  • log_exception(self, exception)
  • log_request(self, request, override_log_values=None)
    @api.model

New fields (2)
  • api_log_mail_exception_activity_type_id Many2one → mail.activity.type
    comodel_name='mail.activity.type' domain=[('res_model', '=', 'api.log')] help='An activity of this type will be created when an error is logged.' string='Error Activity type'
  • api_log_mail_exception_template_id Many2one → mail.template
    comodel_name='mail.template' domain=[('model_id.model', '=', 'api.log')] help='An email based on this template will be sent when an error is logged.' string='Error E-mail Template'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/rest-framework
GIT
GIThttps://github.com/OCA/rest-framework.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/rest-framework/tree/16.0/api_log_mail
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), PyTech
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), PyTech
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Simone Rubino, oca-ci, Alessandro Pecchini
WEBSITE
WEBSITEhttps://github.com/OCA/rest-framework
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:11:49
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/rest-framework:
    - api_log
odoo/odoo:
    - web
    - base
    - mail
    - base_setup
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to create an activity when an exception is logged in an API logs collection.

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (1)
  • message_main_attachment_id Many2one
    index='btree_not_null'
Public methods (2)
  • log_exception(self, exception)
  • log_request(self, request, override_log_values=None)
    @api.model

New fields (2)
  • api_log_mail_exception_activity_type_id Many2one → mail.activity.type
    comodel_name='mail.activity.type' domain=[('res_model', '=', 'api.log')] help='An activity of this type will be created when an error is logged.' string='Error Activity type'
  • api_log_mail_exception_template_id Many2one → mail.template
    comodel_name='mail.template' default=<expr> domain=[('model_id.model', '=', 'api.log')] help='An email based on this template will be sent when an error is logged.' string='Error E-mail Template'
Public methods (0)

No public methods.