product
This page combines editorial guidance with evidence extracted from the selected official branch. Always test the flow with your own permissions and configuration.
Purpose
The Product Module defines the essential concepts needed to describe products in Tryton. It lets you define the basic properties of products and their variants, and allows you to record how the quantity of a product is measured.
The analysis found 9 Python files, 23 XML files, 18 views, 30 actions, 10 menus, and 0 reports.
Functional user guide
Who should use it
This module is relevant to people responsible for product processes, company configuration, and result review. Administrators should participate whenever dependencies, permissions, or sequences are introduced.
What you will be able to do
After configuration, you will be able to identify the records added by product, execute actions in the correct state, and understand the information shared with other modules.
Requirements and preparation
Before activation, verify company, currency, users, and groups. Install and configure required dependencies first. When real data exists, rehearse activation and upgrades on a restored copy.
Activate dependencies first, review company configuration, and rehearse the complete workflow before production use.
Required dependencies
company— must be installed and configured before testing this module.ir— must be installed and configured before testing this module.res— must be installed and configured before testing this module.
Optional integrations
- —
Recommended initial configuration
- Activate the module and sign in again to load menus and permissions.
- Review new company configuration options and defaults.
- Assign groups to test users using least privilege.
- Create small, verifiable master data before bulk imports.
- Run one complete scenario from draft to final state and inspect related records.
Module objects and concepts
- ir.configuration: groups 1 model(s), including
ir.configuration. These records form the information users inspect or modify during the process. - product.category: groups 1 model(s), including
product.category. These records form the information users inspect or modify during the process. - product.configuration: groups 2 model(s), including
product.configuration,product.configuration.default_cost_price_method. These records form the information users inspect or modify during the process. - product.cost_price: groups 1 model(s), including
product.cost_price. These records form the information users inspect or modify during the process. - product.cost_price_method: groups 1 model(s), including
product.cost_price_method. These records form the information users inspect or modify during the process. - product.identifier: groups 1 model(s), including
product.identifier. These records form the information users inspect or modify during the process. - product.list_price: groups 1 model(s), including
product.list_price. These records form the information users inspect or modify during the process. - product.product: groups 1 model(s), including
product.product. These records form the information users inspect or modify during the process. - product.template: groups 1 model(s), including
product.template. These records form the information users inspect or modify during the process. - product.template-product: groups 2 model(s), including
product.template-product.category,product.template-product.category.all. These records form the information users inspect or modify during the process. - product.uom: groups 2 model(s), including
product.uom,product.uom.category. These records form the information users inspect or modify during the process.
Typical workflow
- Select the correct company and date before creating a document.
- Complete master data before lines or details.
- Use form buttons for state changes; saving is not the same as validating or posting.
- Review warnings, totals, related documents, and traceability.
- Verify effects on dependent modules before closing the process.
Actions, states, and wizards
add_products— action or transition that starts add products. Check permissions, current state, and related records before running it.
Controls before production
- Define who creates, reviews, confirms, cancels, and reads.
- Test closed periods, unauthorized users, and incomplete data.
- Verify numbering, currency, rounding, and time zone where applicable.
- Document error correction without direct database edits.
- Include its tables and files in backup and restore procedures.
Troubleshooting
- If a menu is missing, verify activation, module-list update, groups, and a new login session.
- If a field rejects a value, inspect its domain, company, state, and configured dependencies.
- If a button is hidden or disabled, check permissions and valid transitions; never change state with SQL.
- If results differ, reproduce a minimal case and compare related records before and after.
- Keep the full traceback, version, active modules, and minimal data needed to diagnose an error.
Developer guide
Architecture and extension points
The package contains 19 Python classes and declares or extends 14 models. It uses Boolean, Char, Float, Function, Integer, Many2Many, Many2One, MultiValue, Numeric, One2Many, Selection, Text. Developers should first determine whether a class creates a model or uses PoolMeta to extend one, preserve super() calls, and avoid duplicating dependency rules.
Registered or extended models
ir.configurationproduct.categoryproduct.configurationproduct.configuration.default_cost_price_methodproduct.cost_priceproduct.cost_price_methodproduct.identifierproduct.list_priceproduct.productproduct.templateproduct.template-product.categoryproduct.template-product.category.allproduct.uomproduct.uom.category
Field types used
BooleanCharFloatFunctionIntegerMany2ManyMany2OneMultiValueNumericOne2ManySelectionText
Detected classes and public methods
Classes: Category, Configuration, ConfigurationDefaultCostPriceMethod, InvalidIdentifierCode, Product, ProductCostPrice, ProductCostPriceMethod, ProductIdentifier, ProductListPrice, ProductValidationError, Template, TemplateCategory, TemplateCategoryAll, TemplateFunction, TemplateValidationError, UOMAccessError, UOMValidationError, Uom, UomCategory
Methods: accurate_field(), add_products(), barcode(), ceil(), check(), check_code(), check_factor_and_rate(), check_xml_record(), compute_price(), compute_qty(), copy(), create(), default_code_readonly(), default_consumable(), default_cost_price(), default_cost_price_method(), default_default_cost_price_method(), default_digits(), default_factor(), default_product_price_decimal(), default_products(), default_rate(), default_rounding(), default_type(), floor(), get_code_readonly(), get_cost_price(), get_cost_price_methods(), get_multivalue(), get_price_uom(), get_rec_name(), get_template(), identifier_get(), list_price_used(), multivalue_model(), on_change_factor(), on_change_rate(), on_change_template(), on_change_type(), on_change_with_code(), on_change_with_default_uom_category(), on_change_with_prefix_code(), order(), order_code(), order_rec_name(), order_suffix_code(), pre_validate(), round(), search_default_uom_category(), search_global(), search_rec_name(), search_template(), searchable(), set_multivalue(), sync_code(), union_models(), validate_fields(), write()
Code map
Detected 9 Python files, 23 XML files, and 0 explicit access files. XML connects models to views, menus, actions, and reports; access CSV files establish initial permissions.
__init__.pycategory.pycategory.xmlconfiguration.pyconfiguration.xmldoc/conf.pyexceptions.pyir.pymessage.xmlproduct.pyproduct.xmlsetup.pyuom.pyuom.xmlview/category_form.xmlview/category_list.xmlview/category_product_form.xmlview/category_tree.xmlview/configuration_form.xmlview/identifier_form.xmlview/identifier_list.xmlview/identifier_list_sequence.xmlview/product_form.xmlview/product_form_simple.xmlview/product_tree.xmlview/product_tree_simple.xmlview/template_form.xmlview/template_tree.xmlview/uom_category_form.xmlview/uom_category_tree.xmlview/uom_form.xmlview/uom_tree.xml
Test plan
- Activation on an empty database and upgrade from the previous revision.
- Create, update, copy, and delete according to state and access rights.
- Every button, transition, and wizard with valid and invalid scenarios.
- Applicable multi-company rules, translations, time zones, and currencies.
- Combined installation with required and optional dependencies.
- Backup and restore of records, attachments, and generated reports.
Compatibility and upgrades
Keep server and modules on series 7.0. Before upgrading, compare tryton.cfg, __register__ migrations, state changes, XML IDs, and permissions. A successful build does not replace a rehearsed migration or functional data reconciliation.
Official documentation evidence
Topics found: Configuration · price_decimal · uom_conversion_decimal · Design · Product · Product Template · Product Variant · Category · Unit of Measure · Unit of Measure Category · Product Module · Usage · Using product templates and variants · Categorising products
-
- doc/configuration.rst: The Product Module uses some settings from the
[product]section of the
- doc/configuration.rst: The Product Module uses some settings from the
-
- doc/design.rst: The Product Module introduces the following concepts:
-
- doc/index.rst: The Product Module defines the essential concepts needed to describe products in Tryton. It lets you define the basic properties of products and their variants, and allows you to record how the quantity of a product is measured.
-
- doc/usage.rst: The items found under the [
Product] main menu item allow you to view and manage the products on your system.
- doc/usage.rst: The items found under the [