Skip to main content

Sale Subscription Module

The sale subscription module defines subscription, services and recurrence rule models.

Subscription

A subscription defines how some recurring services are periodically invoiced. The invoice is generated based on the consumption of each services. Here is the extensive list of the fields:

  • Party: The customer.

  • Contact: The contact who placed the order.

  • Invoice Party: An optional different party to invoice.

  • Invoice Address: The invoice address of the customer.

  • Number: The internal reference of the subscription.

  • Reference: The optional external reference of the subscription.

  • Description: An optional description for the subscription.

  • Start Date: The date at which the subscription starts.

  • End Date: The optional end date of the subscription.

  • Invoice Start Date: The date at which the invoice starts to be generated.

  • Invoice Recurrence: The definition of the invoicing recurrence.

  • Payment Term: The payment term to apply on the invoices.

  • Currency: Define the currency to use for the subscription. All service prices will be computed accordingly.

  • Lines:

    • Service: A required reference to the service subscribed.

    • Description: The description of the service subscribed.

    • Consumption Recurrence: The optional recurrence of consumption of the service.

    • Quantity: The quantity consumed on each occurrence.

    • Unit: The unit of measure of the quantity.

    • Unit Price: The unit price of the service expressed in the currency of the subscription.

    • Start Date: An optional later start date than the subscription.

    • End Date: An optional earlier end date than the subscription.

  • States: The state of the subscription. May take one of the following values: Draft, Quotation, Running, Closed, Cancelled.

  • Company: The company which issue the sale order.

A running subscription can be modified by going back to draft and edit. Some field may not more be editable if the consumption has already started. The draft subscription is momentary stopped until it is set back to running.

The consumptions are created by schedulers or by a wizard. Idem for the creation of the invoices.

Service

A subscription service defines the default consumption of a product. It is composed of the fields:

  • Product: A product of type service.

  • Consumption Recurrence: The recurrence at which the service is consumed.

  • Consumption Delay: A delay to apply between the date the consumption is created and the date of the consumption.

Recurrence Rule

It defines combination of rules which compute the occurrence dates.

  • Name: The name of the rule.

  • Rules:

    • Exclusive: Define if the rule excludes the resulted dates.

    • Frequency: Daily, Weekly, Monthly, Yearly.

    • Interval: The interval of the frequency

    • By Week Day: Defines the list of weekdays where the recurrence will be applied.

    • By Month Day: Defines the list of month days to apply the recurrence to.

    • By Year Day: Defines the list of year days to apply the recurrence to.

    • By Week Number: Defines the list of week numbers (ISO8601) to apply the recurrence to.

    • By Month: Defines the list of months to apply the recurrence to.

    • By Position: Defines the list of occurrence positions.

    • Week Start Day.

The computation of occurrences is base on the python-dateutil library.

Metadata

Release files for trytond-sale-subscription 8.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trytond-sale-subscription 8.2.0
File Size Uploaded
trytond_sale_subscription-8.2.0.tar.gz 61.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trytond-sale-subscription 8.2.0
File Interpreter ABI Platform
trytond_sale_subscription-8.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 188.0 kB

Release files / trytond_sale_subscription-8.2.0.tar.gz

Download URL trytond_sale_subscription-8.2.0.tar.gz
Size 61.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3b40355b016c732d59aa0d8b123ac587d7150edab4fa58799e1dd7d84696df78
BLAKE2b-256 checksum
How to use checksums
92392b7d91d91969a050f60b45635b0366ccc74fdeeca0e9107c727e85408750
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / trytond_sale_subscription-8.2.0-py3-none-any.whl

Download URL trytond_sale_subscription-8.2.0-py3-none-any.whl
Size 126.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ecd85fe98c34ec849ad3a8764c8b6d10e847d7cd84a7af7a3621002583dc728
BLAKE2b-256 checksum
How to use checksums
743f46db21d95a531f1905f6321af08307324596aad3b276ca6c52c7445a3447
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

8.2.0 This release

2 release files

8.0.1

2 release files

8.0.0

2 release files

7.8.1

2 release files

7.8.0

2 release files

7.6.0

2 release files

7.4.2

2 release files

7.4.1

2 release files

7.4.0

2 release files

7.2.4

2 release files

7.2.3

2 release files

7.2.2

2 release files

7.2.1

2 release files

7.2.0

2 release files

7.0.4

2 release files

7.0.3

2 release files

7.0.2

2 release files

7.0.1

2 release files

7.0.0

2 release files

6.8.3

2 release files

6.8.2

2 release files

6.8.1

2 release files

6.8.0

2 release files

6.6.3

2 release files

6.6.2

2 release files

6.6.1

2 release files

6.6.0

2 release files

6.4.2

2 release files

6.4.1

2 release files

6.4.0

2 release files

6.2.0

2 release files

6.0.7

2 release files

6.0.6

2 release files

6.0.5

2 release files

6.0.4

2 release files

6.0.3

2 release files

6.0.2

2 release files

6.0.1

2 release files

6.0.0

2 release files

5.8.4

2 release files

5.8.3

2 release files

5.8.2

2 release files

5.8.1

2 release files

5.8.0

2 release files

5.6.3

2 release files

5.6.2

2 release files

5.6.1

2 release files

5.6.0

2 release files

5.4.1

2 release files

5.4.0

2 release files

5.2.1

2 release files

5.2.0

2 release files

5.0.8

2 release files

5.0.7

2 release files

5.0.6

2 release files

5.0.5

2 release files

5.0.4

2 release files

5.0.3

2 release files

5.0.2

2 release files

5.0.1

2 release files

5.0.0

2 release files

4.8.3

3 release files

4.8.2

3 release files

4.8.1

3 release files

4.8.0

3 release files

4.6.1

3 release files

4.6.0

3 release files

4.4.2

3 release files

4.4.1

3 release files

4.4.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page