Order to cash · step 2 of 9
Opportunity
An opportunity is a specific potential sale that a business pursues with a known lead or customer, with an expected value, a sales stage and a probability of closing.
Why it exists: Because each potential sale has to be tracked separately from the buyer, so that the expected value, the stage and the chance of winning can be added up across all open deals.
Where it sits
Order to cash: Lead → Opportunity → Quotation → Sales Order → Delivery Note → Invoice → Payment → Return → Credit Note
How an opportunity moves through its life
Six states. Pick one to see what an opportunity is, and what it can still become.
Being pursued. No quotation is active yet.
Then: Replied
Being pursued. No quotation is active yet.
Then: Replied
The buyer has answered. ERPNext closes it automatically if nothing changes for the CRM setting period.
Then: Quotation
The buyer has answered. ERPNext closes it automatically if nothing changes for the CRM setting period.
Then: Quotation
Set by the system while an active quotation exists against the opportunity.
Then: Converted
Set by the system while an active quotation exists against the opportunity.
Then: Converted
Set by the system once a quotation from the opportunity has an order.
Then: Lost
Set by the system once a quotation from the opportunity has an order.
Then: Lost
Declared lost, with a reason. Blocked while an active quotation exists.
Then: Closed
Declared lost, with a reason. Blocked while an active quotation exists.
Then: Closed
Closed by the auto-close job after Replied, when nothing has changed for the CRM setting period.
Ends here
Closed by the auto-close job after Replied, when nothing has changed for the CRM setting period.
Ends here
Rules that must hold, and what breaks them
Rules
- An opportunity names its party: opportunity_from (a lead or a customer) and the party itself are both required.
- An opportunity cannot be declared lost while an active quotation exists against it.
- A replied opportunity closes on its own when nothing changes for the CRM setting period, which is fifteen days by default.
Does this happen in your business?
Tick what you recognise. Each tick shows what it costs.
Tick any that happen here.
In ERPNext, and in your system
How ERPNext models it
| DocType | What it does here |
|---|---|
| Opportunity | opportunity_from and party_name are required. Status Lost is blocked while an active quotation exists. |
| Quotation | Carries the opportunity link back. A lost quotation sets the opportunity to Lost. |
| CRM Settings | close_opportunity_after_days, default 15. A Replied opportunity closes on its own after this many days. |
What other systems call it
| System | Name | Note |
|---|---|---|
| ERPNext | Opportunity | DocType Opportunity. Docs updated 2026-07-23; source opportunity.json and opportunity.py at v16.50.0. |
| Tally | — | not verified: TallyPrime's help has no opportunity or pipeline record. The nearest voucher is a sales order. |
| Zoho Books | — | not verified: Zoho Books' help has no deal or opportunity page. Deals sit in Zoho CRM. |
| SAP Business One | Opportunity | SAP Learning course on the Opportunity window (potential deals with a customer or lead). SAP's 9.0 Dutch help confirms the window; the 10.0 help page was not located on 2026-10-14. |
| Odoo | Opportunity | A lead is converted into an opportunity. Opportunities also come straight from the pipeline (Odoo 18.0 docs). |
From each maker's own documentation, checked 13 October 2026. A dash: not confirmed.
Where an opportunity connects
More terms it connects to
Each one opens that term.
Questions about opportunities
The one most people ask is answered first. Type to find the rest.
What does an opportunity mean for the business?
- The code comment on the auto-close job says seven days. The setting defaults to fifteen, and the setting governs.
- An opportunity from a customer is checked against that customer's frozen or disabled status before it saves.
- More than one opportunity can sit against one lead or customer. That is normal for separate deals.
- The expected closing date and the probability are the fields a forecast reads. Leaving them empty leaves the forecast blank for that deal.
Reviewed 14 October 2026. All 40 documents: the ERP glossary.