EDI Notification
edi_notification_oca · OCA/edi-framework
Health
73/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_errorBooleandefault=Falsehelp="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_idMany2one → mail.activity.typedefault=<expr>string='Activity Type Used When Notify On Process Error' args: 'mail.activity.type' -
notify_on_process_error_enabledBooleancompute='_compute_notify_on_process_error_enabled' -
notify_on_process_error_groups_idsMany2many → res.groupscomodel_name='res.groups'inverse='_inverse_notify_on_process_error_groups_users'string='Notify Groups On Process Error' -
notify_on_process_error_users_idsMany2many → res.userscomodel_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'
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…