Coverage for src/backend/InvenTree/generic/states/__init__.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 17:47 +0000

1"""States are used to track the logical state of an object. 

2 

3The logic value of a state is stored in the database as an integer. The logic value is used for business logic and should not be easily changed therefore. 

4There is a rendered state for each state value. The rendered state is used for display purposes and can be changed easily. 

5 

6States can be extended with custom options for each InvenTree instance - those options are stored in the database and need to link back to state values. 

7""" 

8 

9from . import fields 

10from .states import ColorEnum, StatusCode, StatusCodeMixin 

11from .transition import StateTransitionMixin, TransitionMethod 

12 

13__all__ = [ 

14 'ColorEnum', 

15 'StateTransitionMixin', 

16 'StatusCode', 

17 'StatusCodeMixin', 

18 'TransitionMethod', 

19 'fields', 

20]