Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Tryton module with leads and opportunities

Project description

The sale_opportunity module defines the lead/opportunity model.


The lead and opportunity are defined by the same record but with different state. Depending on the state, fields of the record become mandatory. Here is the extensive list of the fields, most of them are optional:

  • Party: The customer.

  • Contact: The contact who placed the order.

  • Address: The main address of the customer.

  • Description: The description of the lead/opportunity.

  • Number: The internal reference of the lead/opportunity (will be generated automatically at creation).

  • Reference: The optional external reference of the order.

  • Amount: The estimated revenue amount.

  • Currency: Define the currency of the amount.

  • Probability: The probability of conversion.

  • Company: The company which issue the lead/opportunity.

  • Employee: The employee responsible of the lead/opportunity.

  • Start Date: When the lead started.

  • End Date: When the lead ends (automatically set on win, cancel or lost).

  • Payment Term: Define which payment term will be used for the future invoice.

  • Comment: A text field to add custom comments.

  • State: The state of the lead/opportunity. May take one of the following values:

    • Lead
    • Opportunity
    • Converted
    • Won
    • Cancelled
    • Lost
  • Lines: A list of Lead/Opportunity line

  • Sales: The list of sales converted from this opportunity.

  • History: The list of changes made over time to the lead/opportunity.

The first time an opportunity is converted, a sale is created base on the information of the opportunity and the lines. The amount of the opportunity is later updated with the sales amount. Once all the sales of an opportunity are confirmed (or cancelled with at least one confirmed), the opportunity is won. If all the sales of an opportunity are cancelled than the opportunity is lost.

Lead/Opportunity Line

A lead/opportunity line define a quantity of product that are expected to be sold.


The sale_opportunity module defines also some reports:

  • Opportunities per Employee.
  • Opportunities per Month.
  • Opportunities per Employee per Month.

which all show:

  • The number of leads/opportunities.
  • The number of converted opportunities.
  • The convertion rate.
  • The number of won opportunities.
  • The winning rate.
  • The number of lost opportunities.
  • The total amount of leads/opportunities.
  • The total amount of converted opportunities.
  • The convertion amount rate.
  • The total amount of won opportunities.
  • The winning amount rate.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for trytond-sale-opportunity, version 5.6.0
Filename, size File type Python version Upload date Hashes
Filename, size trytond_sale_opportunity-5.6.0-py3-none-any.whl (81.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size trytond_sale_opportunity-5.6.0.tar.gz (50.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page