Fraud Service Disconnection Som Connexió
Module to automate the fraud circuit for first invoice defaults in Som Connexió.
Table of contents
Configuration
Credential configuration is performed strictly through Environment Variables (standard library mm_proxy_python_client):
MM_PROXY_BASEURL
MM_PROXY_USER
MM_PROXY_PASSWORD
No additional configuration is required in the Odoo dashboard.
Usage
This module proactively detects fraud or early payment defaults (first invoice) and streamline operational actions (service disconnection) and administrative tasks (task generation) without manual intervention.
1. Scenario: Receipt of Bank Return (Non-Payment)
When the finance department confirms a return (payment.return), the system verifies the customer’s history. If it is their first invoice, it automatically creates a Task in the Fraud project linked to their Contract. This task creation also triggers a mail notification to the insolvent partner, warning them to pay their debt.
2. Scenario: Service Disconnection
When a cron job detects that the task has been inactive (no payment recieved) for a certain period of time, it triggers an action to disconnect the service. Odoo invokes the ProxyMM Python client. If the API responds correctly, the task status changes to “Disconnected”. This disconnection action can also be triggered manually by the operator through a button in the task form view.
3. Scenario: Payment and Reactivation
When the customer pays the outstanding debt (invoice reconciliation), the billing team can then trigger the “Reactivate” signal (via Python client) and update the task to “Reactivated”. This allows for quick service restoration when the situation is regularized, improving customer experience.
Contributors
Som IT Cooperatiu SCCL <https://somit.coop//>
Nicolás Ramos nicolas.ramos@somit.coop
Som Connexió SCCL <https://somconnexio.coop/>
Gerard Funonsas gerard.funosas@somconnexio.coop
Borja Gimeno borja.gimeno@somconnexio.coop
Metadata
Release files for odoo-addon-fraud-service-disconnection-somconnexio 16.0.1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| odoo_addon_fraud_service_disconnection_somconnexio-16.0.1.0.4.tar.gz | 19.2 kB | Details |
Release files / odoo_addon_fraud_service_disconnection_somconnexio-16.0.1.0.4.tar.gz
| Download URL | odoo_addon_fraud_service_disconnection_somconnexio-16.0.1.0.4.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1e442c846fcd72c82c30270b2d83a155db1cbdedb449cb4e987e255a9cdd202
|
|
BLAKE2b-256 checksum How to use checksums |
caa977362d804d9b4c653d202f5c4064f5de491c7eb474c9e94aaa0c2d6dc0b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|