2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Optionally hide 'revision' field (#4493)

* Adds setting to enable / disable revision field

* Optionally hide revision field from part forms

* Hide revision informatoin on part page

* Bug fix for part variant table

- Use existing full_name variable rather than re-creating on the client side

* Optionally hide 'revision' field in part tables
This commit is contained in:
Oliver
2023-03-15 16:44:32 +11:00
committed by GitHub
parent 8d4ffcf682
commit 324a47ba17
4 changed files with 30 additions and 16 deletions

View File

@ -273,7 +273,8 @@
<td>{{ part.IPN }}{% include "clip.html"%}</td>
</tr>
{% endif %}
{% if part.revision %}
{% settings_value "PART_ENABLE_REVISION" as show_revision %}
{% if show_revision and part.revision %}
<tr>
<td><span class='fas fa-code-branch'></span></td>
<td>{% trans "Revision" %}</td>