quality
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 Quality Module enables quality to be controlled by configuring control points and inspecting against these when certain operations are performed.
The analysis found 7 Python files, 13 XML files, 9 views, 46 actions, 6 menus, and 0 reports.
Functional user guide
Who should use it
This module is relevant to people responsible for quality 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 quality, 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.product— must be installed and configured before testing this module.res— must be installed and configured before testing this module.
Optional integrations
production— enables an additional integration; test the combination explicitly.stock— enables an additional integration; test the combination explicitly.
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
- production: groups 1 model(s), including
production. These records form the information users inspect or modify during the process. - quality.alert: groups 1 model(s), including
quality.alert. These records form the information users inspect or modify during the process. - quality.configuration: groups 2 model(s), including
quality.configuration,quality.configuration.sequence. These records form the information users inspect or modify during the process. - quality.control: groups 2 model(s), including
quality.control,quality.control.point. These records form the information users inspect or modify during the process. - quality.inspect: groups 2 model(s), including
quality.inspect,quality.inspect.store. These records form the information users inspect or modify during the process. - quality.inspection: groups 1 model(s), including
quality.inspection. These records form the information users inspect or modify during the process. - stock.shipment: groups 4 model(s), including
stock.shipment.in,stock.shipment.internal,stock.shipment.out,stock.shipment.out.return. 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
defer— action or transition that starts defer. Check permissions, current state, and related records before running it.fail— action or transition that starts fail. Check permissions, current state, and related records before running it.open— action or transition that starts open. Check permissions, current state, and related records before running it.pass_— action or transition that starts **pass **. Check permissions, current state, and related records before running it.pending— action or transition that starts pending. Check permissions, current state, and related records before running it.process— action or transition that starts process. Check permissions, current state, and related records before running it.resolve— action or transition that starts resolve. Check permissions, current state, and related records before running it.deferred— action or transition that starts deferred. Check permissions, current state, and related records before running it.failed— action or transition that starts failed. Check permissions, current state, and related records before running it.passed— action or transition that starts passed. Check permissions, current state, and related records before running it.processing— action or transition that starts processing. Check permissions, current state, and related records before running it.resolved— action or transition that starts resolved. Check permissions, current state, and related records before running it.quality.inspect— wizard that collects data and performs quality › inspect. 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 18 Python classes and declares or extends 13 models. It uses Char, DateTime, Dict, Float, Many2Many, Many2One, MultiSelection, MultiValue, One2Many, Reference, 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
productionquality.alertquality.configurationquality.configuration.sequencequality.controlquality.control.pointquality.inspectquality.inspect.storequality.inspectionstock.shipment.instock.shipment.internalstock.shipment.outstock.shipment.out.return
Field types used
CharDateTimeDictFloatMany2ManyMany2OneMultiSelectionMultiValueOne2ManyReferenceSelectionText
Detected classes and public methods
Classes: Alert, Configuration, ConfigurationSequence, Control, ControlPoint, ControlledMixin, ControlledShipmentMixin, Inspect, InspectStateView, InspectStore, Inspection, InspectionError, InspectionValidationError, Production, ShipmentIn, ShipmentInternal, ShipmentOut, ShipmentOutReturn
Methods: check(), choose(), control(), copy(), create(), default_alert_sequence(), default_company(), default_frequency(), default_inspection_sequence(), default_state(), defer(), done(), fail(), get_alert(), get_defaults(), get_from_control(), get_inspections(), get_origins(), get_view(), match(), multivalue_model(), on_change_control(), open(), operation(), order_number(), pack(), pass_(), pending(), pick(), process(), quality_control_needed(), quality_control_pattern(), quality_controlled_for(), quality_inspections_failed(), quality_inspections_pending(), receive(), resolve(), run(), ship(), transition_next_(), transition_save(), transition_start(), validate_points(), value_inspection(), view_attributes()
Code map
Detected 7 Python files, 13 XML files, and 0 explicit access files. XML connects models to views, menus, actions, and reports; access CSV files establish initial permissions.
__init__.pydoc/conf.pyexceptions.pymessage.xmlproduction.pyproduction.xmlquality.pyquality.xmlsetup.pystock.pystock.xmlview/quality_alert_form.xmlview/quality_alert_list.xmlview/quality_configuration_form.xmlview/quality_control_form.xmlview/quality_control_list.xmlview/quality_control_point_form.xmlview/quality_control_point_list.xmlview/quality_inspection_form.xmlview/quality_inspection_list.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: Design · Control · Inspection · Wizards · Inspect · Alert · Configuration · Quality Module · API Reference · Controlled
-
- doc/design.rst: The Quality Module introduces the following concepts:
-
- doc/index.rst: The Quality Module enables quality to be controlled by configuring control points and inspecting against these when certain operations are performed.
-
- doc/reference.rst: This mixin_ provides the methods that are useful to implement a quality control.