---
title: Part Revisions
---

## Part Revisions

When creating a complex part (such as an assembly comprised of other parts), it is often necessary to track changes to the part over time. For example, throughout the lifetime of an assembly, it may be necessary to adjust the bill of materials, or update the design of the part.

Rather than overwrite the existing part data, InvenTree allows you to create a new *revision* of the part. This allows you to track changes to the part over time, and maintain a history of the part design.

Crucially, creating a new *revision* ensures that any related data entries which refer to the original part (such as stock items, build orders, purchase orders, etc) are not affected by the change.

### Revisions are Parts

A *revision* of a part is itself a part. This means that each revision of a part has its own part number, stock items, parameters, bill of materials, etc. The only thing that differentiates a *revision* from any other part is that the *revision* is linked to the original part.

### Revision Fields

Each part has two fields which are used to track the revision of the part:

* **Revision**: The revision number of the part. This is a user-defined field, and can be any string value.
* **Revision Of**: A reference to the part of which *this* part is a revision. This field is used to keep track of the available revisions for any particular part.

### Revision Restrictions

When creating a new revision of a part, there are some restrictions which must be adhered to:

* **Circular References**: A part cannot be a revision of itself. This would create a circular reference which is not allowed.
* **Unique Revisions**: A part cannot have two revisions with the same revision number. Each revision (of a given part) must have a unique revision code.
* **Template Revisions**: A part which is a [template part](./template.md) cannot have revisions. This is because the template part is used to create variants, and allowing revisions of templates would create disallowed relationship states in the database. However, variant parts are allowed to have revisions.
* **Template References**: A part which is a revision of a variant part must point to the same template as the original part. This is to ensure that the revision is correctly linked to the original part.

## Revision Settings

The following [global settings](../settings/global.md) are available to control the behavior of part revisions:

| Name | Description | Default | Units |
| ---- | ----------- | ------- | ----- |
{{ globalsetting("PART_ENABLE_REVISION") }}
{{ globalsetting("PART_REVISION_ASSEMBLY_ONLY") }}


## Create a Revision

To create a new revision for a given part, navigate to the part detail page, and click on the part actions menu (three vertical dots on the top right of the page).

Select the "Duplicate Part" action, to create a new copy of the selected part. This will open the "Duplicate Part" form:

{{ image("part/part_create_revision.png", "Create part revision") }}

In this form, make the following updates:

1. Set the *Revision Of* field to the original part (the one that you are duplicating)
2. Set the *Revision* field to a unique revision number for the new part revision

Once these changes (and any other required changes) are made, press *Submit* to create the new part.

Once the form is submitted (without any errors), you will be redirected to the new part revision. Here you can see that it is linked to the original part:

{{ image("part/part_revision_b.png", "Part revision B") }}

## Revision Navigation

When multiple revisions exist for a particular part, you can navigate between revisions using the *Select Part Revision* drop-down which renders at the top of the part page:

{{ image("part/part_revision_select.png", "Select part revision") }}

!!! info "Revision Selector Visibility"
    Note that this revision selector is only visible when multiple revisions exist for the part.
