Logo Lanfrica

AliMora83/Odoo-BA-API

Type de record:

software
Créateur:
Ali
Hôte:
Odoo-BA-API is an Odoo module that automatically synchronizes service requests from the Bridging Africa external API into your Odoo CRM system # Odoo-BA-API: Bridging Africa API Integration ## Overview Odoo-BA-API is an Odoo module that automatically synchronizes service requests from the Bridging Africa external API into your Odoo CRM system. This module eliminates manual data entry by automatically pulling completed and pending jobs, creating service records, and populating CRM leads with customer and job information. ## What This Module Does This module provides a seamless bridge between the Bridging Africa service request system and Odoo's CRM by: - **Automatically fetching** all completed and pending service requests from the external API - **Preventing duplicates** by checking if requests already exist in Odoo before creating new records - **Creating services** dynamically (Plumbing, Electrical, Carpentry, etc.) if they don't already exist - **Populating CRM leads** with comprehensive job details including customer information, service type, pricing status, and job descriptions ## Features ✅ **Automated Synchronization** - Scheduled cron job runs automatically at set intervals ✅ **Duplicate Prevention** - Checks for existing quotes before creating new leads ✅ **Service Auto-Creation** - Automatically creates service types as needed ✅ **Bidirectional Data Mapping** - Maps API data fields to Odoo CRM fields ✅ **Status Tracking** - Captures job status (completed, pending) and payment status ## Installation ### Prerequisites - Odoo 19.0 or higher - Python 13+ - `requests` library installed ### Steps 1. Clone or download this module to your Odoo addons directory: ``` git clone ~/odoo/addons/odoo-ba-api ``` 2. Restart your Odoo server 3. Navigate to **Apps** in Odoo and search for "Odoo-BA-API" 4. Click **Install** 5. Configure the API endpoint URL if different from the default ## Configuration ### API Endpoint The default API endpoint is: ``` bridgingafrica.ncnsoftware.… ``` To modify this, edit the `_cron_api_crm_services()` method in `models/crm …