Closed SchrodingersGat closed 2 months ago
I can not reproduce this; do you have more information about this instance? There is 98% coverage on https://github.com/inventree/InvenTree/pull/7862 and all API logic changes are fully covered
Silly question, but have you run the migrations?
Yes, migrations were all applied and up to date. I will look into this over the weekend further.
I have found a reproducible state; will submit patch
Please verify that this bug has NOT been raised before.
Describe the bug*
Newly introduced feature "custom user states" breaks existing installations.
When editing the "status code" for a stock item, a 500 error is raised:
Note that no "custom states" have been defined
Steps to Reproduce
Expected behaviour
New status code should be accepted. No custom states should be required for this to work.
Deployment Method
Version Information
Version Information:
InvenTree-Version: 0.17.0 dev Django Version: 4.2.15 Commit Hash: bbf1198 Commit Date: 2024-08-22 Commit Branch: master Database: mysql Debug-Mode: True Deployed using Docker: False Platform: Linux-5.19.0-1029-aws-x86_64-with-glibc2.35 Installer: GIT
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'}, {'name': 'Wireviz', 'slug': 'wireviz', 'version': '0.6.2'}, {'name': 'KiCadLibraryPlugin', 'slug': 'kicad-library-plugin', 'version': '1.4.2'}, {'name': 'AOI Reporting', 'slug': 'aoi', 'version': '0.27.1'}, {'name': 'ESC Commissioning', 'slug': 'esccommissioning', 'version': '0.27.1'}, {'name': 'ESC Parameter Validation', 'slug': 'esc_parameters', 'version': '0.27.1'}, {'name': 'Purchase Order Reports', 'slug': 'poreports', 'version': '0.27.1'}, {'name': 'Serial Number Tags', 'slug': 'serial_tags', 'version': '0.27.1'}, {'name': 'Currawong Validation', 'slug': 'currawongvalidation', 'version': '0.27.1'}]
Please verify if you can reproduce this bug on the demo site.
Relevant log output
No response