inventree / InvenTree

Open Source Inventory Management System
https://docs.inventree.org
MIT License
4.12k stars 735 forks source link

Showing IPN under part view if IPN is removed from 'Part Name Display Format' #6971

Closed JacobEFO closed 4 months ago

JacobEFO commented 5 months ago

Please verify that this bug has NOT been raised before.

Describe the bug*

I don't know if this is a bug per se, but I have a use case, where I in the part overview don't care showing the IPN as a part of the part name and have thus removed it so my Part Name Display Format is set to {{ part.name }}.

When you do so and view a part, you cannot see the part IPN. See for instance the overview:

image

Then you see the following when you've navigated to the part:

image

Is there any way to have IPN show up just below the description of the part? Alternatively that would be an excellent feature request.

Steps to Reproduce

  1. Go to Settings
  2. Go to Parts
  3. Change Part Name Display Format to not include part.IPN
  4. Go to some part that has an affiliated IPN

Expected behaviour

Inventree is likely designed exactly for this behavior, and thus I wouldn't classify the desire as expected behavior.

Deployment Method

Version Information

Version Information:

InvenTree-Version: 0.14.4 Django Version: 4.2.11 Commit Hash: 35fc954 Commit Date: 2024-03-22

Database: postgresql Debug-Mode: False Deployed using Docker: True Platform: Linux-6.6.12-linuxkit-x86_64-with Installer: DOC

Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.0.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}, {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'}, {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.0.0'}, {'name': 'InvenTreeLabelMachine', 'slug': 'inventreelabelmachine', 'version': '1.0.0'}, {'name': 'InvenTreeLabelSheet', 'slug': 'inventreelabelsheet', 'version': '1.0.0'}, {'name': 'DigiKeyPlugin', 'slug': 'digikeyplugin', 'version': '1.0.0'}, {'name': 'LCSCPlugin', 'slug': 'lcscplugin', 'version': '1.0.0'}, {'name': 'MouserPlugin', 'slug': 'mouserplugin', 'version': '1.0.0'}, {'name': 'TMEPlugin', 'slug': 'tmeplugin', 'version': '1.0.0'}, {'name': 'KiCadLibraryPlugin', 'slug': 'kicad-library-plugin', 'version': '1.4.0'}]

Please verify if you can reproduce this bug on the demo site.

Relevant log output

No response

SchrodingersGat commented 5 months ago

If you select the "show part details" button (as shown in your screenshot above) then the IPN will be visible:

image

matmair commented 4 months ago

@JacobEFO Can we close this?

JacobEFO commented 4 months ago

@matmair Yes absolutely. Unfortunately I am not notified anywhere upon updates of my Github issues.

@SchrodingersGat thank you very much for taking your time to reply and hand me the resolution.