InvenTree icon indicating copy to clipboard operation
InvenTree copied to clipboard

Build Order Reference not updating automatically (unless browser is refreshed)

Open JustusRijke opened this issue 1 month ago • 2 comments

Please verify that this bug has NOT been raised before.

  • [x] I checked and didn't find a similar issue

Describe the bug*

When adding multiple build orders, the build order reference is not incremented automatically, triggering an error response:

Image

This can be avoided by refreshing (F5) the page before adding the next build order.

Sidequest: This screenshot is taken from the default Demo website, opened from a US/English system. The error message is in Russian.

Steps to Reproduce

  1. Go to https://demo.inventree.org/web/part/77/builds
  2. Add a build order
  3. Add a second build order

Expected behaviour

Build order reference is incremented

Deployment Method

Other - added info in Steps to Reproduce

Version Information

InvenTree-Version: 1.2.0 dev Django Version: 5.2.8 Commit Hash: 8cb808f Commit Date: 2025-11-14 Commit Branch: null Database: django.db.backends.postgresql Debug-Mode: False Deployed using Docker: True Platform: Linux-5.15.0-100-generic-x86_64-with-glibc2.41 Installer: DOC Active plugins: false

Try to reproduce on the demo site

I tried to reproduce

Is the bug reproducible on the demo site?

Reproducible

Relevant log output


JustusRijke avatar Nov 14 '25 10:11 JustusRijke

Side quest: The demo has an issue in that users can change the language and error messages etc are then send in that language going forward so this is to be expected

matmair avatar Nov 14 '25 12:11 matmair

See incoming fix in https://github.com/inventree/InvenTree/pull/10840. This should address this style of problem across the entire interface

SchrodingersGat avatar Nov 14 '25 21:11 SchrodingersGat