Skip to content
Open
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
4921843
Feature: Add DB models and API scaffolding for Repair Orders (#12064)
adityakrmishra Jun 2, 2026
46bb1bf
Merge branch 'master' into feature-repair-orders-backend-12064
adityakrmishra Jun 2, 2026
75183eb
fix style with `prek run -a` locally
matmair Jun 3, 2026
966d662
fix style
matmair Jun 3, 2026
e7db90e
remove dup apis
matmair Jun 3, 2026
40072ab
fix: add docstrings, permissions, and admin registration for RepairOr…
adityakrmishra Jun 4, 2026
59be354
Fix: Resolve Django init crash (missing RepairOrderStatus) and fix ru…
adityakrmishra Jun 4, 2026
04998e7
Fix: Restore missing RepairOrder serializers and resolve prek formatting
adityakrmishra Jun 4, 2026
c2187c4
Fix: Add search_fields to RepairOrder admins to resolve admin.E040
adityakrmishra Jun 4, 2026
ae79d45
Fix: Add missing database migrations for RepairOrder models
adityakrmishra Jun 4, 2026
35d34d4
Fix: Regenerate OpenAPI schema to include RepairOrder endpoints
adityakrmishra Jun 4, 2026
b4d0378
Merge branch 'master' into feature-repair-orders-backend-12064
adityakrmishra Jun 4, 2026
a0806b0
Fix: Regenerate API schema with exact CI formatting to resolve EOFError
adityakrmishra Jun 4, 2026
53b4db8
Fix: Regenerate API schema using invoke task to match CI expectations
adityakrmishra Jun 4, 2026
0ba8d2d
Fix: Bump API version to bypass schema diff check and untrack schema.…
adityakrmishra Jun 4, 2026
d771ebe
Fix: Update state classes count in test_all_states for RepairOrderStatus
adityakrmishra Jun 4, 2026
923ced9
Merge branch 'master' into feature-repair-orders-backend-12064
adityakrmishra Jun 4, 2026
f60e283
Fix: Inherit required Mixins for RepairOrder, regenerate migration an…
adityakrmishra Jun 4, 2026
aa7dd54
Fix: Remove old 0120 migration
adityakrmishra Jun 4, 2026
bda7a64
Fix: Untrack schema.yml to resolve SonarCloud false positives
adityakrmishra Jun 4, 2026
bb88f19
Fix: Resolve migration graph conflict by merging multiple 0120 leaf n…
adityakrmishra Jun 4, 2026
527092d
Feature: Implement React UI scaffolding for Repair Orders including F…
adityakrmishra Jun 4, 2026
8bdb938
Fix: Resolve frontend build issues and backend duplicate column migra…
adityakrmishra Jun 4, 2026
f6a24b0
Style: Run prek formatters and fix frontend build
adityakrmishra Jun 4, 2026
115bf39
Merge branch 'master' into feature-repair-orders-backend-12064
adityakrmishra Jun 4, 2026
06f3420
Fix: Resolve post-merge regressions (API version, TS build, and prek …
adityakrmishra Jun 4, 2026
6cb0354
Fix: Surgically resolve specific prek formatting and TS build errors …
adityakrmishra Jun 4, 2026
ab9bdeb
Style: Apply brute-force pre-commit formatting pass across all files
adityakrmishra Jun 4, 2026
f574533
Fix: Surgically resolve final frontend prek and TS build errors
adityakrmishra Jun 4, 2026
4208912
Style: Surgically fix final prek linting error
adityakrmishra Jun 4, 2026
263a94e
Style: Resolve final cascading prek formatting errors and remove temp…
adityakrmishra Jun 4, 2026
0ff3d0b
Revert "Style: Run prek formatters and fix frontend build"
matmair Jun 5, 2026
c6b091e
Merge branch 'master' of https://github.com/inventree/InvenTree into …
matmair Jun 5, 2026
7af0c1e
Merge branch 'master' into feature-repair-orders-backend-12064
adityakrmishra Jun 6, 2026
0a0516a
Merge branch 'master' into feature-repair-orders-backend-12064
adityakrmishra Jul 24, 2026
1d518fc
Fix: Resolve post-merge CI failures
adityakrmishra Jul 24, 2026
013eaed
Merge remote-tracking branch 'upstream/master' into feature-repair-or…
adityakrmishra Jul 24, 2026
25ece1f
Fix: Add barcode_model_type_code to RepairOrder and bump API version
adityakrmishra Jul 24, 2026
0ed558a
Merge branch 'master' into feature-repair-orders-backend-12064 to res…
adityakrmishra Jul 27, 2026
ca53133
Merge remote-tracking branch 'upstream/master' into feature-repair-or…
adityakrmishra Jul 31, 2026
89ed878
Refactor: Move RepairOrder architecture from order app to build app p…
adityakrmishra Jul 31, 2026
0f47324
Fix: Resolve post-refactor prek linting errors
adityakrmishra Jul 31, 2026
ccc8a91
Test: Resolve DB test failures caused by order-to-build refactor
adityakrmishra Jul 31, 2026
23e334f
CI: Trigger re-run to clear upstream Playwright flakes (Firefox juggl…
adityakrmishra Jul 31, 2026
3920e4e
Merge remote-tracking branch 'upstream/master' into feature-repair-or…
adityakrmishra Aug 1, 2026
b585eea
Fix: Revert accidental formatting changes to historical migration files
adityakrmishra Aug 1, 2026
35b2e5a
Merge remote-tracking branch 'upstream/master' into feature-repair-or…
adityakrmishra Aug 7, 2026
6936450
Merge branch 'master' into feature-repair-orders-backend-12064
SchrodingersGat Aug 11, 2026
5b99b06
Docs: Add comprehensive documentation for Repair Orders feature
adityakrmishra Aug 11, 2026
721ef5c
Merge remote-tracking branch 'upstream/master' into feature-repair-or…
adityakrmishra Aug 18, 2026
63606e0
Merge branch 'master' into feature-repair-orders-backend-12064
SchrodingersGat Aug 18, 2026
cfeb78a
Enhancement: Implement state machine transitions for RepairOrder
adityakrmishra Aug 20, 2026
5e22802
Merge branch 'master' into feature-repair-orders-backend-12064
matmair Aug 20, 2026
7096a8b
Test: Add comprehensive state transition tests for RepairOrder to fix…
adityakrmishra Aug 20, 2026
716aa67
Test: Prune RepairOrder transition tests to core lifecycle per review
adityakrmishra Aug 21, 2026
e03375a
Merge branch 'master' into feature-repair-orders-backend-12064
SchrodingersGat Aug 21, 2026
69f6fa9
Style: Revert accidental formatting changes in unrelated files per re…
adityakrmishra Aug 21, 2026
6a00e92
Merge branch 'master' into feature-repair-orders-backend-12064
matmair Aug 21, 2026
bda5481
Fix api-status-all test assertion for RepairOrderStatus and update AP…
adityakrmishra Aug 21, 2026
0305888
Chore: Sync branch with upstream/master
adityakrmishra Aug 21, 2026
b75ed0c
ci: trigger fresh CI run
adityakrmishra Aug 21, 2026
fffba11
Merge branch 'master' into feature-repair-orders-backend-12064
matmair Aug 21, 2026
6fe3f2d
Fix: Implement core backend architecture for Repair Orders (Mixins, A…
adityakrmishra Aug 23, 2026
e6c9aa7
Fix: Add RepairOrder allocation validation, stock consumption, and fr…
adityakrmishra Aug 23, 2026
f7cf203
Fix: Clean up dead frontend code, unused props, and invalid fields fo…
adityakrmishra Aug 23, 2026
31f0517
Test: Add comprehensive backend API tests, frontend E2E specs, and up…
adityakrmishra Aug 24, 2026
6411a66
Chore: Resolve api_version.py conflict and sync with upstream/master
adityakrmishra Aug 24, 2026
ddc1e58
Chore: Resolve api_version.py conflict and sync with upstream/master
adityakrmishra Aug 24, 2026
0a58478
Fix: Correct invalid users migration dependency in build 0061
adityakrmishra Aug 24, 2026
0475cb5
Fix: Resolve CI test failures, add missing validator migration, and f…
adityakrmishra Aug 24, 2026
0c37ee2
Merge branch 'master' into feature-repair-orders-backend-12064
SchrodingersGat Aug 25, 2026
1c3eb8c
Merge 3 migrations into 1
SchrodingersGat Aug 25, 2026
9aadf5e
Fix unit tests
SchrodingersGat Aug 26, 2026
f843145
Add basic report generation
SchrodingersGat Aug 26, 2026
3ceffb1
Update docs
SchrodingersGat Aug 26, 2026
837212c
API / serializer updates
SchrodingersGat Aug 26, 2026
bff5b33
Enable global search
SchrodingersGat Aug 26, 2026
71459e1
API filtering and UI table elements
SchrodingersGat Aug 26, 2026
5df7502
Merge remote-tracking branch 'upstream/master' into feature-repair-or…
adityakrmishra Aug 27, 2026
6bcba71
Enhancement: Scope RepairOrder to a specific Part
adityakrmishra Aug 27, 2026
77aa693
Fix: Correct migration dependencies and expand test coverage for Repa…
adityakrmishra Aug 27, 2026
8126dbb
Fix unit tests
SchrodingersGat Aug 29, 2026
62dddee
View repair orders from part context
SchrodingersGat Aug 30, 2026
e125d55
Merge commit 'a205717171894fa0da9e44b2558dc293ad811ccf' into feature-…
SchrodingersGat Aug 30, 2026
eb7991a
Implement stock allocation logic
SchrodingersGat Aug 30, 2026
e81b34a
Merge branch 'master' into feature-repair-orders-backend-12064
SchrodingersGat Aug 30, 2026
7220938
Improve API queries
SchrodingersGat Aug 30, 2026
77e4d96
Add "start_date" field to RepairOrder model
SchrodingersGat Aug 30, 2026
2daa5f3
Update admin fields
SchrodingersGat Aug 30, 2026
b3fc802
Enable filter by part variant
SchrodingersGat Aug 30, 2026
529beed
Move table to Manufacturing
SchrodingersGat Aug 30, 2026
4e8dd42
Fix API endpoints
SchrodingersGat Aug 30, 2026
4c54363
Make "part' a required field
SchrodingersGat Aug 30, 2026
1db97a7
Add dashboard widgets
SchrodingersGat Aug 30, 2026
26323af
Update form fields
SchrodingersGat Aug 30, 2026
9e58920
Additional regression test
SchrodingersGat Aug 30, 2026
396aed5
Merge upstream/master and resolve api_version/report conflicts
adityakrmishra Aug 31, 2026
10fa4a7
Fix: Update tests and frontend E2E specs for required part field
adityakrmishra Aug 31, 2026
db65138
Merge branch 'feature-repair-orders-backend-12064' of github.com:adit…
SchrodingersGat Sep 1, 2026
87439be
Fix clash of migration files
SchrodingersGat Sep 1, 2026
f423fbb
Update notes support
SchrodingersGat Sep 1, 2026
41a1709
Merge branch 'master' into feature-repair-orders-backend-12064
SchrodingersGat Sep 1, 2026
b51d13e
Update docs
SchrodingersGat Sep 1, 2026
3748c92
Merge branch 'master' into feature-repair-orders-backend-12064
SchrodingersGat Sep 1, 2026
8cc588d
Merge branch 'master' into feature-repair-orders-backend-12064
matmair Sep 1, 2026
4ca07ba
Merge branch 'master' of github.com:inventree/InvenTree into feature-…
SchrodingersGat Sep 1, 2026
bca585d
Fix frontend URLs
SchrodingersGat Sep 1, 2026
4f0e13f
Merge branch 'feature-repair-orders-backend-12064' of github.com:adit…
SchrodingersGat Sep 1, 2026
7299f64
Updated part reference and unit tests
SchrodingersGat Sep 1, 2026
32f9042
Add tags support for RepairOrder API / UI
SchrodingersGat Sep 1, 2026
1bb33c2
Fix: Resolve PostgreSQL query timing and enable frontend repair order…
adityakrmishra Sep 2, 2026
d7af8d6
Fix: Update frontend E2E tests to handle required fields and UI changes
adityakrmishra Sep 2, 2026
e21f43d
Merge master and resolve API version conflict
adityakrmishra Sep 2, 2026
652650a
Merge branch 'feature-repair-orders-backend-12064' of github.com:adit…
SchrodingersGat Sep 4, 2026
5884270
Merge commit 'ff732d01aa35c8b2b6c52631f188516ceba31b83' into feature-…
SchrodingersGat Sep 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/docs/manufacturing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ Read more about stock allocation in the [Stock Allocation documentation](./alloc
The reverse process is also supported - an assembled stock item can be broken back down into its component parts, based on its BOM. This is useful for reworking or scrapping an assembly, or for splitting a bundled "kit" product purchased from a supplier into its individual components.

Read more about this process in the [Stock Disassembly documentation](../stock/disassemble.md).

### Repair Orders

InvenTree supports the creation of Repair Orders, which are used to manage the process of repairing or reworking existing stock items. Repair Orders track the parts consumed during a repair and can optionally be linked to a customer.

Read more about repair orders in the [Repair Order documentation](./repair.md).
156 changes: 156 additions & 0 deletions docs/docs/manufacturing/repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
---
title: Repair Orders
---

## Repair Orders

A *Repair Order* is used to manage the process of repairing or reworking existing stock items. Where a [Build Order](./build.md) creates *new* stock by assembling components, a Repair Order tracks the restoration of *existing* stock items to working condition, consuming replacement parts from inventory as needed.

Repair Orders are particularly useful for organizations that offer after-sales service, warranty repairs, or internal rework processes. Each Repair Order can optionally be linked to a [customer](../concepts/company.md), allowing you to track which customer's item is being repaired.

!!! tip "Repair vs. Build"
Use a *Build Order* when you are manufacturing a new item from components. Use a *Repair Order* when you are fixing, refurbishing, or reworking an existing stock item.

### Key Concepts

A Repair Order consists of three core components:

| Component | Description |
| --- | --- |
| **Repair Order** | The top-level record that tracks the overall repair, including the customer, description of the issue, and current status |
| **Line Items** | Individual entries specifying which parts are required to perform the repair, and in what quantity |
| **Allocations** | Links between line items and specific stock items in inventory, reserving real stock for the repair |

```mermaid
graph LR
A[Repair Order] --> B[Line Item 1]
A --> C[Line Item 2]
B --> D[Stock Allocation]
B --> E[Stock Allocation]
C --> F[Stock Allocation]
```

## Repair Order Details

### Repair Order Reference

Each Repair Order is uniquely identified by its *Reference* field. Read more about [reference fields](../settings/reference.md).

### Repair Order Parameters

The following parameters are available for each Repair Order, and can be edited by the user:

| Parameter | Description |
| --- | --- |
| Reference | Unique repair order reference e.g. 'RO-0001' |
| Description | Description of the repair order |
| Customer | Link to the *Company* who owns the item being repaired (optional) |
| Symptoms | Detailed description of the reported symptoms or issues |
| Status | Current status of the repair order |

### Repair Order Status

Each *Repair Order* has an associated *Status* flag, which indicates the current state of the repair:

| Status | Description |
| --- | --- |
| `Pending` | Repair order has been created, but work has not yet started |
| `In Progress` | Repair work is actively underway |
| `On Hold` | Repair order has been paused, but is still considered active |
| `Complete` | Repair has been successfully completed |
| `Cancelled` | Repair order has been cancelled |

**Source Code**

Refer to the source code for the Repair Order status codes:

::: build.status_codes.RepairOrderStatus
options:
show_bases: False
show_root_heading: False
show_root_toc_entry: False
show_source: True
members: []

Repair Order Status supports [custom states](../concepts/custom_states.md).

### Status Lifecycle

The typical lifecycle of a Repair Order follows this progression:

```mermaid
graph LR
A["Pending"] --> B["In Progress"]
B --> C["Complete"]
A --> D["Cancelled"]
B --> E["On Hold"]
E --> B
B --> D
```

!!! info "Active Orders"
Orders with a status of *Pending*, *In Progress*, or *On Hold* are considered **active** (open) orders.

## Line Items

Each Repair Order can contain one or more *Line Items*, which specify the parts required to perform the repair. A line item references a specific [Part](../part/index.md) and a required quantity.

| Field | Description |
| --- | --- |
| Repair Order | The parent repair order |
| Part | The part to be consumed for this repair |
| Quantity | The quantity of the part required |

!!! info "Example - Repair Line Items"
A laptop is returned for repair. After diagnosis, you determine that the screen and the battery need to be replaced. You would create two line items: one for the replacement screen, and one for the replacement battery, each with a quantity of 1.

## Stock Allocations

*Stock Allocations* link a repair order line item to a specific [Stock Item](../stock/index.md) in inventory. Allocating stock to a repair order signals an *intent* to consume that stock during the repair process.

| Field | Description |
| --- | --- |
| Line Item | The repair order line item this allocation is for |
| Stock Item | The specific stock item being allocated |
| Quantity | The quantity being allocated from this stock item |

!!! warning "Stock Reservation"
Allocating stock to a repair order does not immediately subtract the stock from inventory. It reserves the stock, indicating that it is earmarked for this particular repair. The stock is consumed when the repair order is completed.

!!! info "Multiple Allocations"
Multiple stock items can be allocated against a single line item, if a single stock item does not have sufficient quantity for the repair.

## Repair Order Features

Repair Orders inherit a number of standard InvenTree features:

### Barcode Support

Each Repair Order can be assigned a unique [barcode](../barcodes/index.md), allowing for quick scanning and lookup.

### Attachments

File [attachments](../concepts/attachments.md) can be uploaded against a Repair Order, for example photographs of the damaged item, diagnostic reports, or customer correspondence.

### Notes

Repair Order [notes](../concepts/attachments.md) support markdown formatting, and can be used to record detailed information about the repair process.

### Tags

[Tags](../concepts/tags.md) can be assigned to Repair Orders for flexible categorization and filtering.

### Reporting

Custom [reports](../report/index.md) can be generated against each Repair Order.

## Repair Order Permissions

Access to Repair Orders is controlled by the `repair_order` [permission](../settings/permissions.md) ruleset. Users must be assigned to a group with the appropriate Repair Order permissions to create, view, edit, or delete repair orders and their associated line items and allocations.

| Permission | Description |
| --- | --- |
| View | View repair orders and their details |
| Add | Create new repair orders, line items, and allocations |
| Change | Edit existing repair orders, line items, and allocations |
| Delete | Delete repair orders, line items, and allocations |
1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ nav:
- Required Quantity: manufacturing/required.md
- Allocating Stock: manufacturing/allocate.md
- External Manufacturing: manufacturing/external.md
- Repair Orders: manufacturing/repair.md
- Example Build Order: manufacturing/example.md
- Purchasing:
- Purchasing: purchasing/index.md
Expand Down
5 changes: 4 additions & 1 deletion src/backend/InvenTree/InvenTree/api_version.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
"""InvenTree API version information."""

# InvenTree API version
INVENTREE_API_VERSION = 533
INVENTREE_API_VERSION = 534
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""

INVENTREE_API_TEXT = """

v534 -> 2026-07-27 : https://github.com/inventree/InvenTree/pull/12072
- Adds API endpoints for RepairOrder, RepairOrderLineItem, and RepairOrderAllocation models

v533 -> 2026-08-18 : https://github.com/inventree/InvenTree/pull/12317
- Refactors the PurchaseOrder, PurchaseOrderLineItem and PurchaseOrderExtraLine API endpoints to use DRF viewsets

Expand Down
40 changes: 39 additions & 1 deletion src/backend/InvenTree/build/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

from django.contrib import admin

from build.models import Build, BuildItem, BuildLine
from build.models import (
Build,
BuildItem,
BuildLine,
RepairOrder,
RepairOrderAllocation,
RepairOrderLineItem,
)


@admin.register(Build)
Expand Down Expand Up @@ -52,3 +59,34 @@ class BuildLineAdmin(admin.ModelAdmin):
search_fields = ['build__title', 'build__reference', 'bom_item__sub_part__name']

autocomplete_fields = ['bom_item', 'build']


@admin.register(RepairOrder)
class RepairOrderAdmin(admin.ModelAdmin):
"""Admin class for the RepairOrder model."""

list_display = ['reference', 'customer', 'status', 'description']

search_fields = ['reference', 'customer__name', 'description']

autocomplete_fields = ['customer']


@admin.register(RepairOrderLineItem)
class RepairOrderLineItemAdmin(admin.ModelAdmin):
"""Admin class for RepairOrderLineItem model."""

list_display = ['order', 'part', 'quantity']

search_fields = ['order__reference', 'part__name', 'part__IPN']

autocomplete_fields = ['order', 'part']


@admin.register(RepairOrderAllocation)
class RepairOrderAllocationAdmin(admin.ModelAdmin):
"""Admin class for RepairOrderAllocation model."""

list_display = ['line', 'item', 'quantity']

autocomplete_fields = ['line', 'item']
106 changes: 105 additions & 1 deletion src/backend/InvenTree/build/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@
import part.models as part_models
import stock.models as stock_models
import stock.serializers
from build.models import Build, BuildItem, BuildLine
from build.models import (
Build,
BuildItem,
BuildLine,
RepairOrder,
RepairOrderAllocation,
RepairOrderLineItem,
)
from build.status_codes import BuildStatus, BuildStatusGroups
from data_exporter.mixins import DataExportViewMixin
from generic.states.api import StatusView
Expand Down Expand Up @@ -1204,6 +1211,48 @@ def get_queryset(self):
]


class RepairOrderList(ListCreateAPI):
"""API endpoint for accessing a list of RepairOrder objects."""

queryset = RepairOrder.objects.all()
serializer_class = build.serializers.RepairOrderSerializer


class RepairOrderDetail(RetrieveUpdateDestroyAPI):
"""API endpoint for detail view of a single RepairOrder object."""

queryset = RepairOrder.objects.all()
serializer_class = build.serializers.RepairOrderSerializer


class RepairOrderLineItemList(ListCreateAPI):
"""API endpoint for accessing a list of RepairOrderLineItem objects."""

queryset = RepairOrderLineItem.objects.all()
serializer_class = build.serializers.RepairOrderLineItemSerializer


class RepairOrderLineItemDetail(RetrieveUpdateDestroyAPI):
"""API endpoint for detail view of a single RepairOrderLineItem object."""

queryset = RepairOrderLineItem.objects.all()
serializer_class = build.serializers.RepairOrderLineItemSerializer


class RepairOrderAllocationList(ListCreateAPI):
"""API endpoint for accessing a list of RepairOrderAllocation objects."""

queryset = RepairOrderAllocation.objects.all()
serializer_class = build.serializers.RepairOrderAllocationSerializer


class RepairOrderAllocationDetail(RetrieveUpdateDestroyAPI):
"""API endpoint for detail view of a single RepairOrderAllocation object."""

queryset = RepairOrderAllocation.objects.all()
serializer_class = build.serializers.RepairOrderAllocationSerializer


build_api_urls = [
# Build lines
path(
Expand Down Expand Up @@ -1276,4 +1325,59 @@ def get_queryset(self):
),
# Build List
path('', BuildList.as_view(), name='api-build-list'),
# Repair Order endpoints
path(
'repair/',
include([
path(
'<int:pk>/',
include([
path(
'', RepairOrderDetail.as_view(), name='api-repair-order-detail'
)
]),
),
path('', RepairOrderList.as_view(), name='api-repair-order-list'),
]),
),
# Repair Order line item endpoints
path(
'repair-line/',
include([
path(
'<int:pk>/',
include([
path(
'',
RepairOrderLineItemDetail.as_view(),
name='api-repair-order-line-detail',
)
]),
),
path(
'', RepairOrderLineItemList.as_view(), name='api-repair-order-line-list'
),
]),
),
# Repair Order allocation endpoints
path(
'repair-allocation/',
include([
path(
'<int:pk>/',
include([
path(
'',
RepairOrderAllocationDetail.as_view(),
name='api-repair-order-allocation-detail',
)
]),
),
path(
'',
RepairOrderAllocationList.as_view(),
name='api-repair-order-allocation-list',
),
]),
),
]
9 changes: 9 additions & 0 deletions src/backend/InvenTree/build/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@ class BuildEvents(BaseEventEnum):
# Build output events
OUTPUT_CREATED = 'buildoutput.created'
OUTPUT_COMPLETED = 'buildoutput.completed'


class RepairOrderEvents(BaseEventEnum):
"""Event enumeration for the RepairOrder model."""

ISSUED = 'repairorder.issued'
HOLD = 'repairorder.hold'
COMPLETED = 'repairorder.completed'
CANCELLED = 'repairorder.cancelled'
Loading
Loading