[19.0][ADD] crm_lead_create_customer - #763
Open
JordiBForgeFlow wants to merge 3 commits into
Open
JordiBForgeFlow wants to merge 3 commits into
JordiBForgeFlow wants to merge 3 commits into
Conversation
Standard CRM only builds the customer of a lead through the lead to opportunity wizard, which is reachable from leads alone. An opportunity that never was a lead, such as the ones website_crm creates when the sales team does not use leads, therefore keeps its contact details denormalized and never gets a customer. The standard opportunity form even hides those fields, so the company and contact names a website visitor typed are stored but unreachable. Show the contact and address fields on opportunities without a customer, and add a highlighted Create Customer button to the status bar that opens the standard conversion wizard, reshaped: the convert/merge radio makes no sense on an opportunity, so it is replaced by a checkbox to merge the detected duplicates. Also assign the customer when merging: crm.lead2opportunity.partner only creates it when the merge result still is a lead, so merging from an opportunity would otherwise silently produce no customer at all.
JordiBForgeFlow
force-pushed
the
19.0-add-crm_lead_create_customer
branch
from
September 9, 2026 14:03
dc1ea42 to
2d2e959
Compare
MiquelRForgeFlow
approved these changes
Sep 9, 2026
…y matches Found with crm_lead_partner_by_vat: an opportunity identified only by its TIN was refused, although the customer could be linked.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Standard CRM only builds the customer of a lead through the lead to opportunity wizard, which is reachable from leads alone. An opportunity that never was a lead, such as the ones website_crm creates when the sales team does not use leads, therefore keeps its contact details denormalized and never gets a customer. The standard opportunity form even hides those fields, so the company and contact names a website visitor typed are stored but unreachable.
Show the contact and address fields on opportunities without a customer, and add a highlighted Create Customer button to the status bar that opens the standard conversion wizard, reshaped: the convert/merge radio makes no sense on an opportunity, so it is replaced by a checkbox to merge the detected duplicates.
Also assign the customer when merging: crm.lead2opportunity.partner only creates it when the merge result still is a lead, so merging from an opportunity would otherwise silently produce no customer at all.