Skip to main content

Product Module

The Product module defines the following models: Category of Unit of Measure, Unit of Measure, Product Template, Product and Product Category.

Category of Unit of Measure

A Category of Unit of Measure is simply defined by a name.

Unit of Measure

A Unit of Measure is defined by:

  • Name.

  • Symbol.

  • UOM category.

  • Rate and a Factor (the later is the inverse of the former).

  • Rounding Precision and Display Digits, used to round and display quantities expressed in the given UOM.

  • Active, allow to disable a UOM.

Product category

The Product Category Model is just composed of a name. Product Categories are organised in a tree structure.

Product Template and Product

The product concept in Tryton is composed of two models: Product Template and Product.

The Product Template model contains the following fields:

  • Name.

  • Code, a common prefix for all products. If a sequence is set on product configuration the code will be read-only and filled using the sequence.

  • Type, whose value can be Goods, Assets, Service.

  • Category.

  • List Price, the default sale price expressed in the List Price UOM. product.

  • List Price UOM.

  • Cost Price, the cost for one unit of this product expressed in the Cost Price UOM.

  • Cost Price UOM.

  • Cost Price Method, which can be Fixed or Average. Defines how the cost price should be updated. Fixed means that the cost price stay unchanged. Average means that the cost price is the average cost of all the items that are in stock. It’s default value can be defined on product configuration.

  • Default UOM. The default UOM for this product. Used for example to express stock levels.

  • Active, allow to disable a product.

The Product model extends the Product Template with two fields: Code (aka SKU) and Description. If a sequence is set on product configuration the code will be read-only and will be filled in using the sequence. It’s also possible to define a list of identifiers on product. An identifier is composed by a type and a code. The following types are available:

  • International Article Number (EAN)

  • International Standard Audiovisual Number (ISAN)

  • International Standard Book Number (ISBN)

  • International Standard Identifier for Libraries (ISIL)

  • International Securities Identification Number (ISIN)

  • International Standard Music Number (ISMN)

Configuration

The product module uses the section product to retrieve some parameters:

  • price_decimal: defines the number of decimal digits with which the unit prices are stored. The default value is 4.

  • uom_conversion_decimal: defines the number of decimal digits with which the conversion rates and factors of UoM are stored. The default value is 12.

Release files for trytond-product 5.8.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-product 5.8.0
File Size Uploaded Provenance Actions
trytond_product-5.8.0.tar.gz 79.5 kB Without provenance Details for trytond_product-5.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trytond-product 5.8.0
File Interpreter ABI Platform Actions
trytond_product-5.8.0-py3-none-any.whl Python 3 none any Details for trytond_product-5.8.0-py3-none-any.whl

Total release size: 212.4 kB

Release files / trytond_product-5.8.0.tar.gz

Download URL trytond_product-5.8.0.tar.gz
Size 79.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4e220cc39f1d9648804f4c99e5acdbdac6e378dc03098c8865c8aea1261acf25
BLAKE2b-256 checksum
How to use checksums
ee27601a1de30f2b2660afb1ec308bc2ea6db1c37f7374e74fa5af6ce02bc9b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

Release files / trytond_product-5.8.0-py3-none-any.whl

Download URL trytond_product-5.8.0-py3-none-any.whl
Size 132.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60d5deb09a261fcdf796c77c8bb9bb7a3bc9206fb6a134557ee83f7d62bbd7fd
BLAKE2b-256 checksum
How to use checksums
9c1e10f0414d691ab85f5e7ab4d4a8a7c96a01092b0bce8f14e51565b13d5fd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

Security for trytond-product 5.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

5.8.0 This release

2 release files No provenance

1.8.0

1.6.1

1.6.0

1.4.2

1.4.1

1.4.0

1.2.2

1.2.1

1.2.0

1.0.2

1.0.1

1.0.0

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