InvenTree/InvenTree/order
Matthias Mair 974ea1ead3
State transition support for generic states (#6017)
* Added state transition support to generic states

* make can_cancel a property everywhere

* add check if method is defined

* add unit tests

* extend tests

* fixed loading of broken classes

* added test to ensure transition functions are called

* added cleaning step for custom classes

* change description texts

* added state transitions to SalesOrder, ReturnOrder

* renamed internal functions

* reduced diff

* fix keyword def

* added return funcion

* fixed test assertation

* replace counting with direct asserting

* also pass kwargs

* added sample for transition plugin
2023-12-07 14:48:09 +11:00
..
fixtures Add Metadata to more models (#4898) 2023-06-02 19:26:20 +10:00
migrations Update django money / py-moneyed dependencies (#5778) 2023-10-31 22:19:55 +11:00
templates/order Fix admin site - Custom admin URL (#5766) 2023-10-21 22:12:14 +11:00
__init__.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
admin.py refactor: refactor unnecessary `else` / `elif` when `if` block has a `return` statement (#5735) 2023-10-18 09:06:54 +11:00
api.py API bug fix: Distinct query (#5940) 2023-11-20 18:25:52 +11:00
apps.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
forms.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
models.py State transition support for generic states (#6017) 2023-12-07 14:48:09 +11:00
serializers.py State transition support for generic states (#6017) 2023-12-07 14:48:09 +11:00
tasks.py refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
test_api.py refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
test_migrations.py Refactor states/status (#4857) 2023-06-09 10:27:26 +10:00
test_sales_order.py refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
test_views.py Cleanup / consolidate unit testing code (#4831) 2023-05-17 07:35:26 +10:00
tests.py refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
urls.py [Feature] Add RMA support (#4488) 2023-03-29 10:35:43 +11:00
validators.py refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
views.py Check for null part instance (#6011) 2023-11-30 16:31:07 +11:00