inventree / InvenTree

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

Is there a list of known units? #7858

Closed LiarOnce closed 20 hours ago

LiarOnce commented 1 month ago

Please verify that this bug has NOT been raised before.

Describe the bug*

I was hoping to add "box" as a custom unit and got an error. I think it's a custom unit but I can't add it.

Steps to Reproduce

  1. Go to Settings page
  2. Go to Physical Units
  3. Add a Unit
  4. Name is Box, Definition is box
  5. Definition got an error: 'box' is not defined in the unit registry

Expected behaviour

Successfully added this unit

Deployment Method

Version Information

Version Information:

InvenTree-Version: 0.17.0 dev Django Version: 4.2.14

Database: sqlite3 Debug-Mode: False Deployed using Docker: False Platform: Linux-6.1.0-23-amd64-x86_64-with-glibc2.36 Installer: None

Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.1.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}, {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'}, {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.1.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'}]

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

Relevant log output

No response

matmair commented 3 weeks ago

Currently not, that would make sense to be added in PUI