Create Helpdesk Tickets from CRM Lead email replies
Project description
This module automatically creates helpdesk tickets when emails are received in reply to CRM leads and are addressed to helpdesk-related email addresses.
Use Case:
Odoo sends an automatic email from a crm.lead record
A user responds to this email, addressing it to a helpdesk email (e.g., support@yourcompany.com)
Odoo routes the email to the corresponding crm.lead record
This module also creates a helpdesk ticket with the same email message
This allows you to centralize communication through helpdesk tickets while maintaining the CRM lead workflow. The email is linked to both the original lead AND a new ticket.
Important Note:
This module depends on and is compatible with helpdesk_ticket_to_lead. It includes circular reference prevention to avoid infinite loops:
If a lead was originally created from a ticket, email replies to that lead will NOT create another ticket
If a lead already has an associated ticket, duplicate tickets will not be created
Both modules can be safely installed together
Unified Ticket Relationship:
Both modules use the same crm_lead_id field on tickets. The lead’s “Related Tickets” smart button shows ALL tickets:
The original ticket converted to the lead (via helpdesk_ticket_to_lead)
Any tickets created from email replies (via this module)
This provides a single, clear view of all ticket-lead relationships.
Table of contents
Dependencies
This module requires:
helpdesk_ticket_to_lead: Provides the base field linking tickets to leads
helpdesk_mgmt: Core helpdesk functionality
Both modules work together seamlessly to support bidirectional conversion between tickets and leads.
Configuration
Automatic Configuration:
The module automatically detects target email addresses from:
Helpdesk Team Aliases: Email addresses configured in Settings > Helpdesk > Teams > Alias
Helpdesk Team Default From: Addresses set in team’s default_team_from_value field
Fetchmail Servers: Any incoming mail server configured to create helpdesk tickets
No manual configuration is required! The module intelligently discovers all helpdesk-related email addresses.
Usage
Once installed, the module works automatically:
When an email is received that routes to a CRM lead
And the email’s To:, Delivered-To:, or CC: contains a helpdesk email address
A helpdesk ticket is automatically created with:
Name: “From CRM: [Lead Name]”
Partner and description from the lead
The same email message posted to the ticket
A link between the lead and ticket
Viewing Related Records:
From a CRM Lead: Click the “Tickets” smart button to see all related tickets
From a Helpdesk Ticket: Click the “CRM Lead” smart button (if ticket was created from a lead)
Example Workflow:
CRM user sends a quote email from a lead with Reply-To: support@yourcompany.com
Customer replies asking a technical question
Email is routed to the lead (CRM tracks the conversation)
Module detects support@yourcompany.com in the email headers
A helpdesk ticket is created automatically with the customer’s question
Support team can handle the technical question in the ticket
CRM and Support teams both have visibility through linked records
Known issues / Roadmap
Tickets are created without a specific user_id - relies on team assignment rules
Consider adding option to automatically assign ticket based on lead’s salesperson
Future enhancement: Configurable rules per CRM team
Future enhancement: Option to NOT post message to lead (only to ticket)
Bug Tracker
Bugs are tracked on GitLab Issues.
In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us by providing detailed and welcomed feedback.
Credits
Contributors
Som It Cooperatiu SCCL
Maintainer
This module is maintained by Som It Cooperatiu SCCL and Som Connexió SCCL.
Project details
Release history Release notifications | RSS feed
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_crm_lead_to_ticket-16.0.1.0.0.tar.gz.
File metadata
- Download URL: odoo_addon_crm_lead_to_ticket-16.0.1.0.0.tar.gz
- Upload date:
- Size: 34.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41ddd057b2326a9cd44d097da50d35e5a2ed6e7d6d1600cbc440c5b3df5ded56
|
|
| MD5 |
7119eed264178b31be89dcdb2c967614
|
|
| BLAKE2b-256 |
146da43a3fd77166bac24438737d4ec38c1bb5e457db78af22c802743b92732f
|