Skip to main content

Automation of service disconnection due to first invoice defaults (fraud circuit) within the SomConnexió ERP.

Project description

Beta License: AGPL-3 coopdevs/som-connexio/odoo-somconnexio

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

File details

Details for the file odoo_addon_fraud_service_disconnection_somconnexio-16.0.1.0.1.tar.gz.

File metadata

File hashes

Hashes for odoo_addon_fraud_service_disconnection_somconnexio-16.0.1.0.1.tar.gz
Algorithm Hash digest
SHA256 3f06bbe3e453b0c0cadf26d8c3b0f98e0209917e56413683950aa3f0a84a4ca3
MD5 f4ce9fd12437685c53014ad07da6108a
BLAKE2b-256 26f00a423e27c98b48a899d43da2421386a212468938f55bf24abbfdb4474944

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page