Community
Customer Churn Prediction
Customer churn prediction module for Odoo. This solution analyzes customer behavior patterns to identify which customers are at risk of leaving your business before they actually do.

Key Features
- Intelligent Churn Detection: Uses machine learning to identify patterns in customer behavior that indicate potential churn.
-
Multi-Factor Analysis: Considers numerous factors including:
- Purchase frequency and recency
- Order values and total spend
- Customer lifetime
- Payment patterns
- Account activity
- Visual Indicators: Adds warning badges to at-risk customers in list and kanban views
- Retention Button: Adds a direct "Retention Required" button to quickly create opportunities for at-risk customers
- Automated Updates: Daily scheduled task refreshes churn predictions automatically
Technical Details
- Uses Random Forest classifier class
- Stores model data efficiently using binary attachments
- Customers who ordered before but not in the last 6 months are considered churned.
- To process the train model must be at least 100 active records (customers & orders).
Installation
- Install the required Python dependencies: pip install pandas numpy scikit-learn
- Install the module through Odoo's Apps menu "customer_churn_prediction"
- Go to CRM > Configuration > Churn Prediction Models and click "Train Model"
Support
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module