<?php
// Odoo CRM Configuration
class OdooConfig {
// Odoo server configuration
const ODOO_URL = 'https://your-odoo-instance.com'; // Replace with your Odoo URL
const ODOO_DB = 'your_database_name'; // Replace with your database name
const ODOO_USERNAME = 'your_username'; // Replace with your Odoo username
const ODOO_PASSWORD = 'your_password'; // Replace with your Odoo password or API key
// API endpoints
const XMLRPC_COMMON = '/xmlrpc/2/common';
const XMLRPC_OBJECT = '/xmlrpc/2/object';
// CRM Lead stages (customize based on your Odoo setup)
const LEAD_STAGE_NEW = 1;
const LEAD_STAGE_QUALIFIED = 2;
const LEAD_STAGE_PROPOSITION = 3;
const LEAD_STAGE_WON = 4;
// Lead sources
const LEAD_SOURCE_WEBSITE_VISIT = 'Website - Visit Booking';
const LEAD_SOURCE_WEBSITE_MAINTENANCE = 'Website - Maintenance Booking';
const LEAD_SOURCE_WEBSITE_CONTACT = 'Website - Contact Form';
// Default values
const DEFAULT_COUNTRY_ID = 188; // Egypt country ID (adjust as needed)
const DEFAULT_COMPANY_ID = 1; // Your company ID
}
?>