Repository
OCA/rest-framework · module folder · Try on Runboat
Module version
1.0.0
Category
Tools
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/rest-framework
Last tracking update
2026-08-07 08:42:49
Authors
Odoo Community Association (OCA), PyTech
Maintainers
Odoo Community Association (OCA), PyTech
Committers
Weblate, Florian Mounier, OCA-git-bot, oca-ci
Odoo dependencies
OCA/rest-framework:
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
fastapi_log_mail
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.

HTTP endpoints (0)

No HTTP endpoints 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.

Loading…

Loading…