Skip to content
Health
73/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 5 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 16.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 3 models 1 view 0 HTTP endpoints

Description

This module creates activities for users when an exchange record's process fails.

It also installs an edi.configuration rule (Notify Users On Exchange Error) that calls edi.notification.tool on process errors.

Exchange types must be configured properly to create such activities:

  • field "Notify On Process Error" must be checked to activate the feature for the current exchange type
  • field "Activity Type Used When Notify On Process Error" is used to define the type of the newly created activity
  • fields "Notify Groups On Process Error" and "Notify Users On Process Error" are used to define the users that will be assigned to the newly created activity

Dependencies

Odoo dependencies
OCA/edi:
OCA/edi-framework:
odoo/odoo:
- web
- bus
Python dependencies
PyYAML, openupgradelib
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
edi_exchange_type_view_form edi.exchange.type form Inherits edi_core_oca.edi_exchange_type_view_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 3

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • notify_on_process_error Boolean
    default=False help="If an error happens on process, a notification will be sent to all selected users. If active, please select the specific groups and specific users in the 'Notifications' page."
  • notify_on_process_error_activity_type_id Many2one → mail.activity.type
    default=<expr> string='Activity Type Used When Notify On Process Error' args: 'mail.activity.type'
  • notify_on_process_error_enabled Boolean
    compute='_compute_notify_on_process_error_enabled'
  • notify_on_process_error_groups_ids Many2many → res.groups
    comodel_name='res.groups' inverse='_inverse_notify_on_process_error_groups_users' string='Notify Groups On Process Error'
  • notify_on_process_error_users_ids Many2many → res.users
    comodel_name='res.users' help="Select users to send notifications to. If 'Notification Groups' have been selected, notifications will also be sent to users selected in here." inverse='_inverse_notify_on_process_error_groups_users' string='Notify Users On Process Error'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • on_edi_exchange_error(self, exchange_record)
    Schedule notification activities for a failed exchange record. This hook is intended to be called by an ``edi.configuration`` snippet (see ``edi_notification_oca/data/edi_configuration.xml``) when an exchange record process ends in error.

Loading…

Loading…