Contact Form 7 to Odoo CRM: Missing Leads Fix
In this article
If your Contact Form 7 submissions aren't appearing as leads in Odoo CRM, the cause is almost always a configuration mismatch, a missing trigger, or a failed webhook—not a bug in either system. This article walks you through the most common reasons leads go missing and provides step-by-step fixes to get your form-to-CRM pipeline working reliably.
How Contact Form 7 and Odoo CRM Connect
Contact Form 7 (CF7) is a popular WordPress plugin that handles form creation and submission. Odoo CRM is a customer relationship management module within the Odoo ERP suite. To send data from CF7 to Odoo, you typically use one of two methods:
- Webhook/API integration – A third-party plugin or custom code sends form data to Odoo's external API (usually via JSON-RPC or XML-RPC) after each submission.
- Third-party connector plugin – Plugins like "Contact Form 7 to Odoo" or generic form-to-CRM tools (e.g., Zapier, Make) handle the transfer without custom code.
In both cases, a successful lead creation depends on three things: the form fields matching Odoo's lead model, the API credentials being valid, and the trigger (form submission) actually firing the connection.
Most Common Causes of Missing Leads
When leads don't appear, check these areas in order of likelihood:
- Field name mismatches – CF7 sends data with field names like
your-name,your-email. Odoo expectscontact_name,email_from, etc. If the mapping is off, Odoo may reject the lead or create an empty one. - Webhook not triggered – Some CF7 hooks (like
wpcf7_mail_sent) may not fire if mail fails. If your form has a mail error, the webhook might never run. - API credentials wrong or expired – Odoo's API requires an active user with the right permissions and a valid API key (or password). If credentials are incorrect, the connection fails silently.
- Firewall or server blocks – Odoo's server might block requests from your WordPress host's IP, or your WordPress host might block outbound requests to Odoo's domain.
- Lead creation fails due to required fields – Odoo may require certain fields (like a name or email) that your form doesn't send. If validation fails, no lead is created.
- Duplicate detection – Odoo's CRM has a "deduplication" feature that may merge or ignore new leads if similar ones exist. Check if the lead is being merged into an existing record.
Step-by-Step Troubleshooting Guide
Follow these steps in order to isolate and fix the issue:
- Test the form without integration – Disable the connector plugin temporarily. Submit the form and check if you receive the email. If email fails, fix mail settings first.
- Check Odoo's server logs – In Odoo, enable developer mode (Settings → Activate Developer Mode), then go to Settings → Technical → Logging. Look for errors around the time of submission. Common errors:
Invalid model,Access Denied, orKeyError. - Verify API credentials – In Odoo, create a dedicated API user with CRM access. In the connector settings, use that user's login and API key (not the master password). Test the connection from the connector's settings page if available.
- Check field mapping – Open the connector's mapping screen. Ensure every CF7 field is mapped to a valid Odoo field. Common required fields:
name(lead title),contact_name,email_from. If a field is unmapped, remove it from the form or add a default value. - Test the webhook URL manually – Use a tool like Postman or a browser to send a sample POST request to Odoo's webhook endpoint with your credentials. If you get a success response, the issue is in the CF7 side. If you get an error, fix the endpoint or credentials.
- Check for caching or CDN interference – Some caching plugins or CDNs (like Cloudflare) may block POST requests. Temporarily disable caching and see if leads appear.
- Look at Odoo's CRM pipeline – Leads might be created but not visible in your default view. Check if they are in a different stage or assigned to another salesperson. Use the search bar to filter by date or source.
How to Choose the Right Integration Method
If you're setting this up from scratch, choose the method that fits your technical comfort:
- No-code connectors (Zapier, Make) – Easiest to set up, but costs a monthly fee and may have a delay. Good for small volumes.
- Dedicated CF7-to-Odoo plugin – Some plugins offer direct integration with a simple UI. Check that the plugin is actively maintained and supports your Odoo version.
- Custom webhook – Requires coding knowledge (PHP and Odoo API). Most flexible and free, but harder to maintain.
For most users, a dedicated plugin or a no-code connector is the most reliable. Custom code is best if you have specific needs like conditional field mapping or file uploads.
Common Misconceptions and Pitfalls
A frequent misconception is that CF7 automatically sends data to Odoo if you just install both systems. It doesn't—you need a bridge. Another pitfall is using the same email address for multiple submissions; Odoo's deduplication may hide new leads if a lead with the same email already exists. To avoid this, disable deduplication in Odoo CRM settings or add a unique field (like a timestamp) to your form.
Also, note that CF7's default form fields use the your- prefix. If you map them incorrectly, you'll get empty fields in Odoo. Always test with a real submission and check the lead's detail page in Odoo.
Preventive Measures and Best Practices
- Enable email notifications – Set up Odoo to send an email when a lead is created. This gives you immediate feedback.
- Log all submissions – Use a plugin like "Contact Form 7 Database" to store submissions locally. This helps you verify if the form is sending data at all.
- Regularly test the connection – After updating WordPress, Odoo, or the connector plugin, submit a test form to ensure everything still works.
- Use a dedicated API user – Create a separate Odoo user for the integration, with only CRM permissions. This avoids lockouts and makes auditing easier.
- Check for PHP errors – Enable WordPress debugging (define('WP_DEBUG', true) in wp-config.php) and look for errors in the debug.log file.
Frequently Asked Questions
Why are my CF7 submissions not showing up in Odoo at all?
This usually means the webhook isn't firing. Check if the connector plugin is active and properly configured. Also, verify that your WordPress site can make outbound HTTP requests—some hosts block them. Try disabling security plugins temporarily to rule out conflicts.
Can I use Zapier to connect CF7 to Odoo?
Yes, Zapier has both CF7 and Odoo integrations. However, you need a paid Zapier plan for active Zaps, and Odoo's integration requires your Odoo database URL and API credentials. It's a reliable option if you don't want to code.
What Odoo fields are required for a lead?
Technically, only the name field is required to create a lead. But it's best to also map contact_name and email_from so you can actually contact the lead. If those are missing, the lead will be created but with empty data.
How do I test if my Odoo API credentials are correct?
Use Odoo's built-in API test tool (in developer mode) or a third-party tool like Postman. Send a simple request to /web/database/list or try to authenticate. If you get a success response, credentials are fine.
My leads appear in Odoo but are duplicated. What should I do?
Odoo has a deduplication feature that can merge duplicates. Go to CRM Settings and enable "Deduplicate Leads". Alternatively, add a hidden field to your form that generates a unique ID (like a timestamp) and map it to a custom Odoo field to prevent duplicates.
What if the form works but the lead is created without any data?
This means the webhook fires but the field mapping is wrong. Double-check that each CF7 field name matches exactly what the connector expects. Use the connector's test mode (if available) to see the raw data being sent.