Version 6.x.x Source

Table Name: `tabLead`

### Fields

Sr | Fieldname | Type | Label | Options
--- | --- | --- | --- | ---
1 | `lead_details` | Section Break |  |
    icon-user
2 | `naming_series` | Select | Series |
    LEAD-
3 | `lead_name` | Data | Person Name |
4 | `company_name` | Data | Organization Name |
5 | `email_id` | Data | Email Id |
    Email
6 | `col_break123` | Column Break |  |
7 | `status` | Select | Status |
    Lead
    Open
    Replied
    Opportunity
    Interested
    Converted
    Do Not Contact
8 | `source` | Select | Source |
    Advertisement
    Blog Post
    Campaign
    Call
    Customer
    Exhibition
    Supplier
    Website
    Email
9 | `customer` | Link | From Customer | Customer
10 | `campaign_name` | Link | Campaign Name | Campaign
11 | `section_break_12` | Section Break |  |
12 | `lead_owner` | Link | Lead Owner | User
13 | `column_break_14` | Column Break |  |
14 | `contact_by` | Link | Next Contact By | User
15 | `contact_date` | Datetime | Next Contact Date Add to calendar on this date |
16 | `contact_info` | Section Break | Address & Contact |
    icon-map-marker
17 | `address_desc` | HTML | Address Desc |
18 | `address_html` | HTML | Address HTML |
19 | `column_break2` | Column Break |  |
20 | `phone` | Data | Phone |
21 | `mobile_no` | Data | Mobile No. |
22 | `fax` | Data | Fax |
23 | `website` | Data | Website |
24 | `territory` | Link | Territory | Territory
25 | `more_info` | Section Break | More Information |
    icon-file-text
26 | `type` | Select | Lead Type |
    Client
    Channel Partner
    Consultant
27 | `market_segment` | Select | Market Segment |
    Lower Income
    Middle Income
    Upper Income
28 | `industry` | Link | Industry | Industry Type
29 | `request_type` | Select | Request Type |
    Product Enquiry
    Request for Information
    Suggestions
    Other
30 | `fiscal_year` | Link | Fiscal Year | Fiscal Year
31 | `column_break3` | Column Break |  |
32 | `company` | Link | Company | Company
33 | `unsubscribed` | Check | Unsubscribed |
34 | `blog_subscriber` | Check | Blog Subscriber |

### Controller

#### erpnext.crm.doctype.lead.lead

### Class Lead

Inherits from erpnext.controllers.selling_controller.SellingController

add_calendar_event (self, opts=None, force=False)

No docs

check_email_id_is_unique (self)

No docs

get_feed (self)

No docs

has_customer (self)

No docs

has_opportunity (self)

No docs

on_trash (self)

No docs

on_update (self)

No docs

onload (self)

No docs

validate (self)

No docs

erpnext.crm.doctype.lead.lead._make_customer (source_name, target_doc=None, ignore_permissions=False)

No docs

Public API
`/api/method/erpnext.crm.doctype.lead.lead.get_lead_details`

erpnext.crm.doctype.lead.lead.get_lead_details (lead)

No docs

Public API
`/api/method/erpnext.crm.doctype.lead.lead.make_customer`

erpnext.crm.doctype.lead.lead.make_customer (source_name, target_doc=None)

No docs

Public API
`/api/method/erpnext.crm.doctype.lead.lead.make_opportunity`

erpnext.crm.doctype.lead.lead.make_opportunity (source_name, target_doc=None)

No docs

Public API
`/api/method/erpnext.crm.doctype.lead.lead.make_quotation`

erpnext.crm.doctype.lead.lead.make_quotation (source_name, target_doc=None)

No docs

#### Linked In:

- Address
- Customer
- Issue
- Opportunity
- Quotation